#CFD158#CFD158

#CFD158 is a very light, vivid yellow. Relative luminance 0.596; OKLCH L 83.6% C 0.143 H 110.0°. Best body text is #000000 at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#CFD158
RGBrgb(207, 209, 88)
HSLhsl(61, 57%, 58%)
HSVhsv(61, 58%, 82%)
CMYKcmyk(1%, 0%, 57.9%, 18%)
CIE-LABlab(81.61, -16.29, 58.36)
CIE-LCHlch(81.61, 60.59, 105.60°)
OKLaboklab(83.58% -0.0489 0.1344)
OKLCHoklch(83.58% 0.143 110)
XYZxyz(50.2954, 59.5722, 18.0798)
Luminance0.5957 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD158 #5A58D1
analogous
#D19658 #CFD158 #92D158
triadic
#CFD158 #58CFD1 #D158CF
tetradic
#CFD158 #58D196 #5A58D1 #D15892
square
#CFD158 #58D196 #5A58D1 #D15892
split-complementary
#CFD158 #5892D1 #9658D1
monochromatic
#878926 #B7B933 #CFD158 #DDDE88 #EBEBB8

Accessibility & contrast

On white

1.63
#CFD158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.91
#CFD158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD158
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD158#FFFFFF#000000##000000
##CFD1581.001.6312.9112.91
#FFFFFF1.631.0021.0021.00
#00000012.9121.001.001.00
##00000012.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C94B
Deuteranopia (green-blind)
#E1CD5F
Tritanopia (blue-blind)
#DCC5B7
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #cfd158;
/* rgb */ color: rgb(207, 209, 88);
/* oklch */ color: oklch(83.6% 0.143 110.0);
Tailwind
colors: {
  custom: {
    50: '#e0de8c',
    500: '#cfd158',
    950: '#000000',
  },
}
SCSS
$custom: #cfd158;
$custom-light: #e0de8c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd158",
  "rgb": {
    "r": 207,
    "g": 209,
    "b": 88
  },
  "hsl": {
    "h": 60.992,
    "s": 56.808,
    "l": 58.235
  },
  "oklch": {
    "l": 0.83579,
    "c": 0.14304,
    "h": 110
  },
  "luminance": 0.59571
}

Semantic roles & 50–950 ramp

primary
#CFD158
secondary
#3F3E8F
accent
#48E04A
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CFD158

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

Preview Lab → · Contrast checker → · Palette generator →

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