#CFDC42#CFDC42

#CFDC42 is a very light, vivid yellow. Relative luminance 0.648; OKLCH L 85.8% C 0.171 H 114.2°. Best body text is #000000 at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#CFDC42
RGBrgb(207, 220, 66)
HSLhsl(65, 69%, 56%)
HSVhsv(65, 70%, 86%)
CMYKcmyk(5.9%, 0%, 70%, 13.7%)
CIE-LABlab(84.40, -23.03, 70.01)
CIE-LCHlch(84.40, 73.70, 108.21°)
OKLaboklab(85.77% -0.0701 0.1558)
OKLCHoklch(85.77% 0.171 114.2)
XYZxyz(52.3102, 64.8461, 14.9141)
Luminance0.6484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFDC42 #4F42DC
analogous
#DC9C42 #CFDC42 #82DC42
triadic
#CFDC42 #42CFDC #DC42CF
tetradic
#CFDC42 #42DC9C #4F42DC #DC4282
square
#CFDC42 #42DC9C #4F42DC #DC4282
split-complementary
#CFDC42 #4282DC #9C42DC
monochromatic
#818A1A #B1BE23 #CFDC42 #DCE676 #E9EFA9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFDC42#FFFFFF#000000##000000
##CFDC421.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)
#ECD127
Deuteranopia (green-blind)
#EBD44E
Tritanopia (blue-blind)
#DCCFBE
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #cfdc42;
/* rgb */ color: rgb(207, 220, 66);
/* oklch */ color: oklch(85.8% 0.171 114.2);
Tailwind
colors: {
  custom: {
    50: '#e1e680',
    500: '#cfdc42',
    950: '#000000',
  },
}
SCSS
$custom: #cfdc42;
$custom-light: #e1e680;
$custom-dark: #000000;
JSON
{
  "hex": "#cfdc42",
  "rgb": {
    "r": 207,
    "g": 220,
    "b": 66
  },
  "hsl": {
    "h": 65.065,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.85765,
    "c": 0.17083,
    "h": 114.2
  },
  "luminance": 0.64845
}

Semantic roles & 50–950 ramp

primary
#CFDC42
secondary
#3A3290
accent
#3CEC4B
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CFDC42

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

Preview Lab → · Contrast checker → · Palette generator →

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