#CFC158#CFC158

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

Color values

HEX#CFC158
RGBrgb(207, 193, 88)
HSLhsl(53, 55%, 58%)
HSVhsv(53, 57%, 81%)
CMYKcmyk(0%, 6.8%, 57.5%, 18.8%)
CIE-LABlab(77.35, -8.20, 53.60)
CIE-LCHlch(77.35, 54.22, 98.69°)
OKLaboklab(80.19% -0.0259 0.1242)
OKLCHoklch(80.19% 0.127 101.8)
XYZxyz(46.5652, 52.1117, 16.8364)
Luminance0.5211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC158 #5866CF
analogous
#CF8558 #CFC158 #A2CF58
triadic
#CFC158 #58CFC1 #C158CF
tetradic
#CFC158 #58CF85 #5866CF #CF58A2
square
#CFC158 #58CF85 #5866CF #CF58A2
split-complementary
#CFC158 #58A2CF #8558CF
monochromatic
#867B27 #B6A634 #CFC158 #DDD388 #EAE4B7

Accessibility & contrast

On white

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

On black

11.42
#CFC158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC158
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC158#FFFFFF#000000##000000
##CFC1581.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfc158;
/* rgb */ color: rgb(207, 193, 88);
/* oklch */ color: oklch(80.2% 0.127 101.8);
Tailwind
colors: {
  custom: {
    50: '#e0d38b',
    500: '#cfc158',
    950: '#000000',
  },
}
SCSS
$custom: #cfc158;
$custom-light: #e0d38b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc158",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 88
  },
  "hsl": {
    "h": 52.941,
    "s": 55.349,
    "l": 57.843
  },
  "oklch": {
    "l": 0.8019,
    "c": 0.12691,
    "h": 101.8
  },
  "luminance": 0.5211
}

Semantic roles & 50–950 ramp

primary
#CFC158
secondary
#3E478D
accent
#5BDF49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC158

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

Preview Lab → · Contrast checker → · Palette generator →

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