#CBC159#CBC159

#CBC159 is a light, vivid yellow. Relative luminance 0.516; OKLCH L 79.8% C 0.126 H 103.8°. Best body text is #000000 at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#CBC159
RGBrgb(203, 193, 89)
HSLhsl(55, 52%, 57%)
HSVhsv(55, 56%, 80%)
CMYKcmyk(0%, 4.9%, 56.2%, 20.4%)
CIE-LABlab(77.02, -9.79, 52.67)
CIE-LCHlch(77.02, 53.57, 100.53°)
OKLaboklab(79.85% -0.0301 0.1225)
OKLCHoklch(79.85% 0.126 103.8)
XYZxyz(45.5032, 51.5593, 17.0043)
Luminance0.5156 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC159 #5963CB
analogous
#CB8859 #CBC159 #9CCB59
triadic
#CBC159 #59CBC1 #C159CB
tetradic
#CBC159 #59CB88 #5963CB #CB599C
square
#CBC159 #59CB88 #5963CB #CB599C
split-complementary
#CBC159 #599CCB #8859CB
monochromatic
#817928 #B0A537 #CBC159 #DAD288 #E8E4B6

Accessibility & contrast

On white

1.86
#CBC159 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.31
#CBC159 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC159
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC159#FFFFFF#000000##000000
##CBC1591.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB4E
Deuteranopia (green-blind)
#D4C15E
Tritanopia (blue-blind)
#D9B5AA
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cbc159;
/* rgb */ color: rgb(203, 193, 89);
/* oklch */ color: oklch(79.8% 0.126 103.8);
Tailwind
colors: {
  custom: {
    50: '#ddd38b',
    500: '#cbc159',
    950: '#000000',
  },
}
SCSS
$custom: #cbc159;
$custom-light: #ddd38b;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc159",
  "rgb": {
    "r": 203,
    "g": 193,
    "b": 89
  },
  "hsl": {
    "h": 54.737,
    "s": 52.294,
    "l": 57.255
  },
  "oklch": {
    "l": 0.79849,
    "c": 0.1261,
    "h": 103.8
  },
  "luminance": 0.51558
}

Semantic roles & 50–950 ramp

primary
#CBC159
secondary
#3F4689
accent
#59DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CBC159

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

Preview Lab → · Contrast checker → · Palette generator →

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