#CFC159#CFC159

#CFC159 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.2% C 0.126 H 101.7°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#CFC159
RGBrgb(207, 193, 89)
HSLhsl(53, 55%, 58%)
HSVhsv(53, 57%, 81%)
CMYKcmyk(0%, 6.8%, 57%, 18.8%)
CIE-LABlab(77.36, -8.12, 53.15)
CIE-LCHlch(77.36, 53.77, 98.69°)
OKLaboklab(80.2% -0.0256 0.1234)
OKLCHoklch(80.2% 0.126 101.7)
XYZxyz(46.6069, 52.1283, 17.0560)
Luminance0.5213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC159 #5967CF
analogous
#CF8659 #CFC159 #A2CF59
triadic
#CFC159 #59CFC1 #C159CF
tetradic
#CFC159 #59CF86 #5967CF #CF59A2
square
#CFC159 #59CF86 #5967CF #CF59A2
split-complementary
#CFC159 #59A2CF #8659CF
monochromatic
#877B27 #B6A735 #CFC159 #DDD388 #EAE4B8

Accessibility & contrast

On white

1.84
#CFC159 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#CFC159 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC159
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC159#FFFFFF#000000##000000
##CFC1591.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BC4E
Deuteranopia (green-blind)
#D5C25E
Tritanopia (blue-blind)
#DDB5AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cfc159;
/* rgb */ color: rgb(207, 193, 89);
/* oklch */ color: oklch(80.2% 0.126 101.7);
Tailwind
colors: {
  custom: {
    50: '#e0d38b',
    500: '#cfc159',
    950: '#000000',
  },
}
SCSS
$custom: #cfc159;
$custom-light: #e0d38b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc159",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 89
  },
  "hsl": {
    "h": 52.881,
    "s": 55.14,
    "l": 58.039
  },
  "oklch": {
    "l": 0.80202,
    "c": 0.12601,
    "h": 101.7
  },
  "luminance": 0.52127
}

Semantic roles & 50–950 ramp

primary
#CFC159
secondary
#3F488E
accent
#5BDE49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC159

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

Preview Lab → · Contrast checker → · Palette generator →

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