#CFD97F#CFD97F

#CFD97F is a very light, moderate yellow. Relative luminance 0.644; OKLCH L 85.8% C 0.114 H 114.0°. Best body text is #000000 at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#CFD97F
RGBrgb(207, 217, 127)
HSLhsl(67, 54%, 67%)
HSVhsv(67, 41%, 85%)
CMYKcmyk(4.6%, 0%, 41.5%, 14.9%)
CIE-LABlab(84.19, -16.76, 43.11)
CIE-LCHlch(84.19, 46.25, 111.25°)
OKLaboklab(85.78% -0.0466 0.1045)
OKLCHoklch(85.78% 0.114 114)
XYZxyz(54.3763, 64.4241, 29.6451)
Luminance0.6442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD97F #897FD9
analogous
#D9B67F #CFD97F #A2D97F
triadic
#CFD97F #7FCFD9 #D97FCF
tetradic
#CFD97F #7FD9B6 #897FD9 #D97FA2
square
#CFD97F #7FD9B6 #897FD9 #D97FA2
split-complementary
#CFD97F #7FA2D9 #B67FD9
monochromatic
#9EAB33 #BDCB50 #CFD97F #E1E7AE #F2F5DD

Accessibility & contrast

On white

1.51
#CFD97F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.88
#CFD97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD97F
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD97F#FFFFFF#000000##000000
##CFD97F1.001.5113.8813.88
#FFFFFF1.511.0021.0021.00
#00000013.8821.001.001.00
##00000013.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D178
Deuteranopia (green-blind)
#E4D383
Tritanopia (blue-blind)
#D9D0C3
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #cfd97f;
/* rgb */ color: rgb(207, 217, 127);
/* oklch */ color: oklch(85.8% 0.114 114.0);
Tailwind
colors: {
  custom: {
    50: '#dfe4a5',
    500: '#cfd97f',
    950: '#000000',
  },
}
SCSS
$custom: #cfd97f;
$custom-light: #dfe4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd97f",
  "rgb": {
    "r": 207,
    "g": 217,
    "b": 127
  },
  "hsl": {
    "h": 66.667,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.85781,
    "c": 0.1144,
    "h": 114
  },
  "luminance": 0.64423
}

Semantic roles & 50–950 ramp

primary
#CFD97F
secondary
#594EAE
accent
#24C235
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#15150F
muted
#848480

Preview Lab

Preview with #CFD97F

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

Preview Lab → · Contrast checker → · Palette generator →

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