#CFD342#CFD342

#CFD342 is a very light, vivid yellow. Relative luminance 0.602; OKLCH L 83.8% C 0.161 H 111.0°. Best body text is #000000 at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#CFD342
RGBrgb(207, 211, 66)
HSLhsl(62, 62%, 54%)
HSVhsv(62, 69%, 83%)
CMYKcmyk(1.9%, 0%, 68.7%, 17.3%)
CIE-LABlab(81.97, -18.64, 67.62)
CIE-LCHlch(81.97, 70.14, 105.41°)
OKLaboklab(83.82% -0.0578 0.1508)
OKLCHoklch(83.82% 0.161 111)
XYZxyz(50.0114, 60.2486, 14.1479)
Luminance0.6025 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD342 #4642D3
analogous
#D38F42 #CFD342 #87D342
triadic
#CFD342 #42CFD3 #D342CF
tetradic
#CFD342 #42D38F #4642D3 #D34287
square
#CFD342 #42D38F #4642D3 #D34287
split-complementary
#CFD342 #4287D3 #8F42D3
monochromatic
#7B7D1D #ABAF29 #CFD342 #DCDF74 #E8EAA5

Accessibility & contrast

On white

1.61
#CFD342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.05
#CFD342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD342
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD342#FFFFFF#000000##000000
##CFD3421.001.6113.0513.05
#FFFFFF1.611.0021.0021.00
#00000013.0521.001.001.00
##00000013.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA2A
Deuteranopia (green-blind)
#E4CE4D
Tritanopia (blue-blind)
#DDC6B6
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #cfd342;
/* rgb */ color: rgb(207, 211, 66);
/* oklch */ color: oklch(83.8% 0.161 111.0);
Tailwind
colors: {
  custom: {
    50: '#e1e07f',
    500: '#cfd342',
    950: '#000000',
  },
}
SCSS
$custom: #cfd342;
$custom-light: #e1e07f;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd342",
  "rgb": {
    "r": 207,
    "g": 211,
    "b": 66
  },
  "hsl": {
    "h": 61.655,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.83819,
    "c": 0.16147,
    "h": 111
  },
  "luminance": 0.60247
}

Semantic roles & 50–950 ramp

primary
#CFD342
secondary
#363485
accent
#42E547
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CFD342

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

Preview Lab → · Contrast checker → · Palette generator →

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