Thinking on ways to solve color palettes

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • In today's GUI Challenge, @AdamArgyleInk builds a wide gamut color palette with okLCH, checking accessible color pairs along the way, inspecting color with devtools, and showing many other neat tricks for leveraging the features of this new web color space.
    Chapters:
    0:00 - Introduction
    0:24 - HSL and LCH
    2:09 - caniuse
    2:50 - Demo Overview
    3:51 - First okLCH color
    5:14 - Wide Gamut DevTool Color Picker
    6:53 - More okLCH color
    9:40 - oklch.com overview
    11:05 - More okLCH colors
    14:08 - okLCH and Accessible Contrast
    16:08 - Palette usage
    19:12 - Hue adjusting
    20:28 - Mapping adjustments for contrast control
    22:05 - Recap
    22:53 - Debugging Corner
    23:22 - Outro
    Resources:
    Try a demo → goo.gle/3MAx4NC
    Get the source → goo.gle/3n4Sfcg
    Watch more GUI Challenges → goo.gle/GUIchallenges
    Subscribe to Google Chrome Developers → goo.gle/ChromeDevs
    #GUIchallenges #CSS #ChromeDeveloper
  • НаукаНаука

Комментарии • 43

  • @ChromeDevs
    @ChromeDevs  Год назад +6

    Subscribe for the latest → goo.gle/ChromeDevs

  • @Manivelarino
    @Manivelarino Год назад +32

    missed opportunity to upload this in HDR 😅

    • @truvc
      @truvc Год назад +4

      A problem I had when trying to report a bug with the HDR color support was no recording or screenshot tools captures the HDR colors. Adam had the same problem.

    • @Manivelarino
      @Manivelarino Год назад +1

      @@truvc hmm, you're right. looks like you can't do HDR with software capture you need a capture card 🤔

    • @AdamArgyleInk
      @AdamArgyleInk Год назад +3

      @@truvc screenshots will capture it, but video screen recordings dont

  • @UliTroyo
    @UliTroyo Год назад +13

    It's so beautiful. I love how much sense lch makes. I hope it makes tons of non-technical users delve into creating color palettes.

  • @AdamArgyleInk
    @AdamArgyleInk Год назад +3

    Good news, I found a way to capture HDR screen recordings! stay tuned.

  • @michaelfaith
    @michaelfaith Год назад +2

    Awesome video. Love the new color space. Thanks!

  • @YinonOved
    @YinonOved Год назад +1

    amazing, this was longed for ages. future is now

  • @stolinski
    @stolinski Год назад +2

    Adam is the man.

  • @MrDoodleDandy
    @MrDoodleDandy 10 месяцев назад

    Fantastic demo on OKLCH, I'm sold as a system designer that loves colour-mixing with simplicity

  • @nicolasparada
    @nicolasparada Год назад

    Love this way of creating palettes :D

  • @iagosoriano3734
    @iagosoriano3734 6 месяцев назад

    Oh my god, I loved that, thanks!

  • @Ana-mn5io
    @Ana-mn5io Год назад +3

    Amazing ❤

  • @kardashevr
    @kardashevr Год назад +2

    this is magic!

  • @willisfamily1081
    @willisfamily1081 Год назад

    Excellent video - gave me lots of ideas. Question: is there anything in CSS (or js) that can automatically calculate a color to be used for text (foreground color) based on any background color, so that the text has a suitable APCA contrast from the background color? It would be handy to just choose various background colors and have the browser pick good contrasting text colors automatically.

  • @kevin00898
    @kevin00898 Год назад +3

    Thanks for populating OKLCH! Kinda wished keeping colors within gamut would be addressed (since you can easily go into imaginary colors territory with OKLCH) and constant APCA contrast ratios between palette steps. Btw, where does 60% lightness number comes from?
    Thanks for the video!

    • @AdamArgyleInk
      @AdamArgyleInk Год назад +3

      to avoid going into imaginary land, that's why i capped my chroma's around .3, since that tends to be where p3's edge is.
      60% comes from testing and some other habits in other palettes like Material in HCT. in this space, a delta of 60 for T does a very similar thing.
      hope that's helpful!

    • @kevin00898
      @kevin00898 Год назад

      @@AdamArgyleInk thank you for the info! :)

    • @ce9916
      @ce9916 Год назад

      @@AdamArgyleInk Thanks for taking the time to reply, makes sense

  • @alexbaciu8211
    @alexbaciu8211 6 месяцев назад +1

    I've been playing around with this and I'm a bit confused. I thought this was supposed to result in the same(ish) contrast ratio across all hues assuming lightness and chroma are the same. But taking an example from my testing: this teal oklch(50%, 0.156, 160) and this purple oklch(50%, 0.156, 320) have contrast ratios agains white of 5.23 and 6.51 respectively. Am I missing something here? Am I misunderstanding the point of oklch?

  • @vitormelo22
    @vitormelo22 2 месяца назад

    Amazing!

  • @RaulReyesOnline
    @RaulReyesOnline Год назад

    It would be highly advantageous to have different methods or approaches for creating deltas for L and C when creating color palettes. Since colours are very hard to deal with a consistent methodology with different approaches will be handy.

  • @drkeithnewton
    @drkeithnewton Год назад +1

    Hi! Great presentation. How are you checking for color contrast directly in the browser and how can I use the mechanism to evaluate other color combinations in the browser?

    • @ce9916
      @ce9916 Год назад +1

      devtools prefs / preferences / elements / show css documentation tooltip 👊

  • @StyleShit
    @StyleShit Год назад +3

    now animate the hue variable infinitely and it'll look even cooler

  • @pauladarr1220
    @pauladarr1220 11 месяцев назад

    How do you enable that fancy information block with the contrast score when you hover the elements.. I can't seem to find anything online about what that is or how to turn that on. I'm guessing it's an extension.

  • @ce9916
    @ce9916 Год назад

    Great vid. What font is zey using?

  • @CarlosAraya25
    @CarlosAraya25 Год назад +2

    I'm still missing it and I know I asked you before. What's the difference between using lab or oklab and lch or oklch?

    • @AdamArgyleInk
      @AdamArgyleInk Год назад +2

      oklab and oklch are verrry similar, but the "ok" versions have micro adjustments made to smoothen out some areas the space doesnt perform well. with this minor adjustment also comes a slightly different way of specifying the color, like chroma is a decimal in oklch/oklab while it's an int in lch/lab.

    • @nielskersic328
      @nielskersic328 Год назад +2

      The “ok” versions have more perceptual uniformity. For normal LAB and LCH, an equal change in values doesn’t always lead to an equal change in perceived output, because we don’t perceive all colors the same way. OKLAB and OKLCH should be much more consistent to our eyes and therefore more intuitive when picking colors. Color spaces are really complex but fascinating. I highly recommend the episodes of HTTP203 that talk about them to get a better understanding.

  • @BrickTamlandOfficial
    @BrickTamlandOfficial Год назад +2

    how to use these palettes in wordpress =P

  • @anhvancodon
    @anhvancodon Год назад +1

    💗

  • @JasvirsinghJasvirsingh-mz3nn
    @JasvirsinghJasvirsingh-mz3nn 10 месяцев назад

  • @parenteseswebdev
    @parenteseswebdev Год назад

    The HTML header element is not considered a banner landmark when it is descendant of an

  • @fionawashere1086
    @fionawashere1086 Год назад

    Pretty good video! But GOD WHY the creepy cartoon dude with the goat-like slit pupils?

    • @ce9916
      @ce9916 Год назад

      It's an animated drawing of his dead brother. Maybe not criticize especially if you don't know the background?

    • @fionawashere1086
      @fionawashere1086 Год назад

      @@ce9916 It's a darn creepy drawing. I'm pretty sure his brother, may he rest in peace, did not have goat-like slit pupils.

    • @ce9916
      @ce9916 Год назад

      @@fionawashere1086 As a matter of fact he did (coloboma)

    • @fionawashere1086
      @fionawashere1086 Год назад

      @@ce9916 So does all of that make it appropriate on an official Google Chrome channel? These are very private issues, and they have nothing to do here.

    • @ce9916
      @ce9916 11 месяцев назад

      @@fionawashere1086 racists always show their true colors sooner or later

  • @andrewthefirst
    @andrewthefirst 11 месяцев назад

    Horrible demonstration of the overcomplicated new color spaces.

  • @rogierderuijter7009
    @rogierderuijter7009 Год назад

    Amazing!