#CFD397#CFD397

#CFD397 is a very light, moderate yellow. Relative luminance 0.621; OKLCH L 84.9% C 0.079 H 111.2°. Best body text is #000000 at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#CFD397
RGBrgb(207, 211, 151)
HSLhsl(64, 41%, 71%)
HSVhsv(64, 28%, 83%)
CMYKcmyk(1.9%, 0%, 28.4%, 17.3%)
CIE-LABlab(82.96, -10.88, 29.34)
CIE-LCHlch(82.96, 31.30, 110.34°)
OKLaboklab(84.93% -0.0284 0.0735)
OKLCHoklch(84.93% 0.079 111.2)
XYZxyz(54.6123, 62.0890, 38.3796)
Luminance0.6209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD397 #9B97D3
analogous
#D3B997 #CFD397 #B1D397
triadic
#CFD397 #97CFD3 #D397CF
tetradic
#CFD397 #97D3B9 #9B97D3 #D397B1
square
#CFD397 #97D3B9 #9B97D3 #D397B1
split-complementary
#CFD397 #97B1D3 #B997D3
monochromatic
#A2A847 #BBC16C #CFD397 #E3E5C2 #F5F6E9

Accessibility & contrast

On white

1.57
#CFD397 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.42
#CFD397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD397
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD397#FFFFFF#000000##000000
##CFD3971.001.5713.4213.42
#FFFFFF1.571.0021.0021.00
#00000013.4221.001.001.00
##00000013.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCCE93
Deuteranopia (green-blind)
#DCD099
Tritanopia (blue-blind)
#D7CCC3
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #cfd397;
/* rgb */ color: rgb(207, 211, 151);
/* oklch */ color: oklch(84.9% 0.079 111.2);
Tailwind
colors: {
  custom: {
    50: '#dee0b6',
    500: '#cfd397',
    950: '#000000',
  },
}
SCSS
$custom: #cfd397;
$custom-light: #dee0b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd397",
  "rgb": {
    "r": 207,
    "g": 211,
    "b": 151
  },
  "hsl": {
    "h": 64,
    "s": 40.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.84926,
    "c": 0.07882,
    "h": 111.2
  },
  "luminance": 0.62088
}

Semantic roles & 50–950 ramp

primary
#CFD397
secondary
#6A65A9
accent
#32B43B
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #CFD397

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

Preview Lab → · Contrast checker → · Palette generator →

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