#CFD942#CFD942

#CFD942 is a very light, vivid yellow. Relative luminance 0.633; OKLCH L 85.1% C 0.168 H 113.2°. Best body text is #000000 at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#CFD942
RGBrgb(207, 217, 66)
HSLhsl(64, 67%, 55%)
HSVhsv(64, 70%, 85%)
CMYKcmyk(4.6%, 0%, 69.6%, 14.9%)
CIE-LABlab(83.59, -21.57, 69.22)
CIE-LCHlch(83.59, 72.50, 107.31°)
OKLaboklab(85.12% -0.066 0.1541)
OKLCHoklch(85.12% 0.168 113.2)
XYZxyz(51.5299, 63.2855, 14.6540)
Luminance0.6328 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD942 #4C42D9
analogous
#D99842 #CFD942 #83D942
triadic
#CFD942 #42CFD9 #D942CF
tetradic
#CFD942 #42D998 #4C42D9 #D94283
square
#CFD942 #42D998 #4C42D9 #D94283
split-complementary
#CFD942 #4283D9 #9842D9
monochromatic
#7F861B #AFB925 #CFD942 #DCE375 #E9EDA8

Accessibility & contrast

On white

1.54
#CFD942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.66
#CFD942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD942
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD942#FFFFFF#000000##000000
##CFD9421.001.5413.6613.66
#FFFFFF1.541.0021.0021.00
#00000013.6621.001.001.00
##00000013.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9CF28
Deuteranopia (green-blind)
#E9D24E
Tritanopia (blue-blind)
#DDCCBB
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #cfd942;
/* rgb */ color: rgb(207, 217, 66);
/* oklch */ color: oklch(85.1% 0.168 113.2);
Tailwind
colors: {
  custom: {
    50: '#e1e480',
    500: '#cfd942',
    950: '#000000',
  },
}
SCSS
$custom: #cfd942;
$custom-light: #e1e480;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd942",
  "rgb": {
    "r": 207,
    "g": 217,
    "b": 66
  },
  "hsl": {
    "h": 63.974,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.85115,
    "c": 0.16767,
    "h": 113.2
  },
  "luminance": 0.63284
}

Semantic roles & 50–950 ramp

primary
#CFD942
secondary
#39338C
accent
#3EE94A
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CFD942

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

Preview Lab → · Contrast checker → · Palette generator →

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