#CFD742#CFD742

#CFD742 is a very light, vivid yellow. Relative luminance 0.623; OKLCH L 84.7% C 0.166 H 112.5°. Best body text is #000000 at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#CFD742
RGBrgb(207, 215, 66)
HSLhsl(63, 65%, 55%)
HSVhsv(63, 69%, 84%)
CMYKcmyk(3.7%, 0%, 69.3%, 15.7%)
CIE-LABlab(83.05, -20.60, 68.69)
CIE-LCHlch(83.05, 71.71, 106.70°)
OKLaboklab(84.68% -0.0633 0.153)
OKLCHoklch(84.68% 0.166 112.5)
XYZxyz(51.0175, 62.2608, 14.4832)
Luminance0.6226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD742 #4A42D7
analogous
#D79442 #CFD742 #85D742
triadic
#CFD742 #42CFD7 #D742CF
tetradic
#CFD742 #42D794 #4A42D7 #D74285
square
#CFD742 #42D794 #4A42D7 #D74285
split-complementary
#CFD742 #4285D7 #9442D7
monochromatic
#7D831C #AEB526 #CFD742 #DCE275 #E9ECA7

Accessibility & contrast

On white

1.56
#CFD742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.45
#CFD742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD742
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD742#FFFFFF#000000##000000
##CFD7421.001.5613.4513.45
#FFFFFF1.561.0021.0021.00
#00000013.4521.001.001.00
##00000013.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CD29
Deuteranopia (green-blind)
#E7D14D
Tritanopia (blue-blind)
#DDCABA
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #cfd742;
/* rgb */ color: rgb(207, 215, 66);
/* oklch */ color: oklch(84.7% 0.166 112.5);
Tailwind
colors: {
  custom: {
    50: '#e1e37f',
    500: '#cfd742',
    950: '#000000',
  },
}
SCSS
$custom: #cfd742;
$custom-light: #e1e37f;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd742",
  "rgb": {
    "r": 207,
    "g": 215,
    "b": 66
  },
  "hsl": {
    "h": 63.221,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84682,
    "c": 0.16558,
    "h": 112.5
  },
  "luminance": 0.6226
}

Semantic roles & 50–950 ramp

primary
#CFD742
secondary
#38348A
accent
#40E849
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CFD742

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

Preview Lab → · Contrast checker → · Palette generator →

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