#CFD398#CFD398

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

Color values

HEX#CFD398
RGBrgb(207, 211, 152)
HSLhsl(64, 40%, 71%)
HSVhsv(64, 28%, 83%)
CMYKcmyk(1.9%, 0%, 28%, 17.3%)
CIE-LABlab(82.98, -10.75, 28.85)
CIE-LCHlch(82.98, 30.79, 110.43°)
OKLaboklab(84.95% -0.028 0.0724)
OKLCHoklch(84.95% 0.078 111.2)
XYZxyz(54.6939, 62.1216, 38.8091)
Luminance0.6212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD398 #9C98D3
analogous
#D3B998 #CFD398 #B1D398
triadic
#CFD398 #98CFD3 #D398CF
tetradic
#CFD398 #98D3B9 #9C98D3 #D398B1
square
#CFD398 #98D3B9 #9C98D3 #D398B1
split-complementary
#CFD398 #98B1D3 #B998D3
monochromatic
#A2A948 #BBC16D #CFD398 #E3E5C3 #F5F6EA

Accessibility & contrast

On white

1.56
#CFD398 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFD398#FFFFFF#000000##000000
##CFD3981.001.5613.4213.42
#FFFFFF1.561.0021.0021.00
#00000013.4221.001.001.00
##00000013.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfd398;
/* rgb */ color: rgb(207, 211, 152);
/* oklch */ color: oklch(84.9% 0.078 111.2);
Tailwind
colors: {
  custom: {
    50: '#dee0b6',
    500: '#cfd398',
    950: '#000000',
  },
}
SCSS
$custom: #cfd398;
$custom-light: #dee0b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd398",
  "rgb": {
    "r": 207,
    "g": 211,
    "b": 152
  },
  "hsl": {
    "h": 64.068,
    "s": 40.136,
    "l": 71.176
  },
  "oklch": {
    "l": 0.84945,
    "c": 0.07759,
    "h": 111.2
  },
  "luminance": 0.62121
}

Semantic roles & 50–950 ramp

primary
#CFD398
secondary
#6B66A9
accent
#32B33B
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #CFD398

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

Preview Lab → · Contrast checker → · Palette generator →

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