#CFD940#CFD940

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

Color values

HEX#CFD940
RGBrgb(207, 217, 64)
HSLhsl(64, 67%, 55%)
HSVhsv(64, 71%, 85%)
CMYKcmyk(4.6%, 0%, 70.5%, 14.9%)
CIE-LABlab(83.58, -21.68, 69.91)
CIE-LCHlch(83.58, 73.20, 107.23°)
OKLaboklab(85.1% -0.0665 0.1553)
OKLCHoklch(85.1% 0.169 113.2)
XYZxyz(51.4719, 63.2624, 14.3489)
Luminance0.6326 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD940 #4A40D9
analogous
#D99740 #CFD940 #82D940
triadic
#CFD940 #40CFD9 #D940CF
tetradic
#CFD940 #40D997 #4A40D9 #D94082
square
#CFD940 #40D997 #4A40D9 #D94082
split-complementary
#CFD940 #4082D9 #9740D9
monochromatic
#7D841A #AEB724 #CFD940 #DCE373 #E9EDA6

Accessibility & contrast

On white

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

On black

13.65
#CFD940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD940
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD940#FFFFFF#000000##000000
##CFD9401.001.5413.6513.65
#FFFFFF1.541.0021.0021.00
#00000013.6521.001.001.00
##00000013.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfd940;
/* rgb */ color: rgb(207, 217, 64);
/* oklch */ color: oklch(85.1% 0.169 113.2);
Tailwind
colors: {
  custom: {
    50: '#e1e47f',
    500: '#cfd940',
    950: '#000000',
  },
}
SCSS
$custom: #cfd940;
$custom-light: #e1e47f;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd940",
  "rgb": {
    "r": 207,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 63.922,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.85101,
    "c": 0.16889,
    "h": 113.2
  },
  "luminance": 0.63261
}

Semantic roles & 50–950 ramp

primary
#CFD940
secondary
#38328B
accent
#3EEA49
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CFD940

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

Preview Lab → · Contrast checker → · Palette generator →

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