#CFD040#CFD040

#CFD040 is a very light, vivid yellow. Relative luminance 0.587; OKLCH L 83.2% C 0.160 H 109.8°. Best body text is #000000 at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#CFD040
RGBrgb(207, 208, 64)
HSLhsl(60, 61%, 53%)
HSVhsv(60, 69%, 82%)
CMYKcmyk(0.5%, 0%, 69.2%, 18.4%)
CIE-LABlab(81.15, -17.26, 67.54)
CIE-LCHlch(81.15, 69.71, 104.34°)
OKLaboklab(83.16% -0.0541 0.1503)
OKLCHoklch(83.16% 0.16 109.8)
XYZxyz(49.2151, 58.7487, 13.5966)
Luminance0.5875 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD040 #4140D0
analogous
#D08940 #CFD040 #87D040
triadic
#CFD040 #40CFD0 #D040CF
tetradic
#CFD040 #40D089 #4140D0 #D04087
square
#CFD040 #40D089 #4140D0 #D04087
split-complementary
#CFD040 #4087D0 #8940D0
monochromatic
#77781E #A8A92A #CFD040 #DBDC71 #E8E8A2

Accessibility & contrast

On white

1.65
#CFD040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.75
#CFD040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD040
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD040#FFFFFF#000000##000000
##CFD0401.001.6512.7512.75
#FFFFFF1.651.0021.0021.00
#00000012.7521.001.001.00
##00000012.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C728
Deuteranopia (green-blind)
#E2CC4A
Tritanopia (blue-blind)
#DDC3B4
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #cfd040;
/* rgb */ color: rgb(207, 208, 64);
/* oklch */ color: oklch(83.2% 0.160 109.8);
Tailwind
colors: {
  custom: {
    50: '#e1de7e',
    500: '#cfd040',
    950: '#000000',
  },
}
SCSS
$custom: #cfd040;
$custom-light: #e1de7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd040",
  "rgb": {
    "r": 207,
    "g": 208,
    "b": 64
  },
  "hsl": {
    "h": 60.417,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.8316,
    "c": 0.15971,
    "h": 109.8
  },
  "luminance": 0.58747
}

Semantic roles & 50–950 ramp

primary
#CFD040
secondary
#343480
accent
#44E445
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CFD040

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

Preview Lab → · Contrast checker → · Palette generator →

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