#CBC638#CBC638

#CBC638 is a light, vivid yellow. Relative luminance 0.534; OKLCH L 80.6% C 0.156 H 107.4°. Best body text is #000000 at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#CBC638
RGBrgb(203, 198, 56)
HSLhsl(58, 59%, 51%)
HSVhsv(58, 72%, 80%)
CMYKcmyk(0%, 2.5%, 72.4%, 20.4%)
CIE-LABlab(78.09, -14.33, 67.30)
CIE-LCHlch(78.09, 68.81, 102.02°)
OKLaboklab(80.62% -0.0465 0.1485)
OKLCHoklch(80.62% 0.156 107.4)
XYZxyz(45.5383, 53.3718, 11.6436)
Luminance0.5337 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC638 #383DCB
analogous
#CB7C38 #CBC638 #86CB38
triadic
#CBC638 #38CBC6 #C638CB
tetradic
#CBC638 #38CB7C #383DCB #CB3886
square
#CBC638 #38CB7C #383DCB #CB3886
split-complementary
#CBC638 #3886CB #7C38CB
monochromatic
#6C6A1C #9D9929 #CBC638 #D8D469 #E4E299

Accessibility & contrast

On white

1.80
#CBC638 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.67
#CBC638 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC638
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC638#FFFFFF#000000##000000
##CBC6381.001.8011.6711.67
#FFFFFF1.801.0021.0021.00
#00000011.6721.001.001.00
##00000011.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BE1D
Deuteranopia (green-blind)
#D9C443
Tritanopia (blue-blind)
#DAB9AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cbc638;
/* rgb */ color: rgb(203, 198, 56);
/* oklch */ color: oklch(80.6% 0.156 107.4);
Tailwind
colors: {
  custom: {
    50: '#dfd779',
    500: '#cbc638',
    950: '#000000',
  },
}
SCSS
$custom: #cbc638;
$custom-light: #dfd779;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc638",
  "rgb": {
    "r": 203,
    "g": 198,
    "b": 56
  },
  "hsl": {
    "h": 57.959,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.80624,
    "c": 0.15559,
    "h": 107.4
  },
  "luminance": 0.5337
}

Semantic roles & 50–950 ramp

primary
#CBC638
secondary
#313476
accent
#4BE246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBC638

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CBC638 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva