#CFD98F#CFD98F

#CFD98F is a very light, moderate yellow. Relative luminance 0.649; OKLCH L 86.0% C 0.096 H 114.7°. Best body text is #000000 at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#CFD98F
RGBrgb(207, 217, 143)
HSLhsl(68, 49%, 71%)
HSVhsv(68, 34%, 85%)
CMYKcmyk(4.6%, 0%, 34.1%, 14.9%)
CIE-LABlab(84.42, -14.92, 35.38)
CIE-LCHlch(84.42, 38.40, 112.86°)
OKLaboklab(86.04% -0.0403 0.0875)
OKLCHoklch(86.04% 0.096 114.7)
XYZxyz(55.5031, 64.8748, 35.5795)
Luminance0.6487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD98F #998FD9
analogous
#D9BE8F #CFD98F #AAD98F
triadic
#CFD98F #8FCFD9 #D98FCF
tetradic
#CFD98F #8FD9BE #998FD9 #D98FAA
square
#CFD98F #8FD9BE #998FD9 #D98FAA
split-complementary
#CFD98F #8FAAD9 #BE8FD9
monochromatic
#A2B13C #BBC961 #CFD98F #E3E9BD #F5F7E8

Accessibility & contrast

On white

1.50
#CFD98F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.97
#CFD98F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD98F
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD98F#FFFFFF#000000##000000
##CFD98F1.001.5013.9713.97
#FFFFFF1.501.0021.0021.00
#00000013.9721.001.001.00
##00000013.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3D28A
Deuteranopia (green-blind)
#E2D392
Tritanopia (blue-blind)
#D7D1C6
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #cfd98f;
/* rgb */ color: rgb(207, 217, 143);
/* oklch */ color: oklch(86.0% 0.096 114.7);
Tailwind
colors: {
  custom: {
    50: '#dee4b0',
    500: '#cfd98f',
    950: '#000000',
  },
}
SCSS
$custom: #cfd98f;
$custom-light: #dee4b0;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd98f",
  "rgb": {
    "r": 207,
    "g": 217,
    "b": 143
  },
  "hsl": {
    "h": 68.108,
    "s": 49.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.86042,
    "c": 0.09633,
    "h": 114.7
  },
  "luminance": 0.64874
}

Semantic roles & 50–950 ramp

primary
#CFD98F
secondary
#685CB0
accent
#29BD3D
background
#FEFEFD
surface
#FCFCF7
border
#D5D5D0
text
#151510
muted
#848481

Preview Lab

Preview with #CFD98F

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

Preview Lab → · Contrast checker → · Palette generator →

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