#CFD542#CFD542

#CFD542 is a very light, vivid yellow. Relative luminance 0.612; OKLCH L 84.3% C 0.164 H 111.7°. Best body text is #000000 at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#CFD542
RGBrgb(207, 213, 66)
HSLhsl(62, 64%, 55%)
HSVhsv(62, 69%, 84%)
CMYKcmyk(2.8%, 0%, 69%, 16.5%)
CIE-LABlab(82.51, -19.62, 68.15)
CIE-LCHlch(82.51, 70.92, 106.06°)
OKLaboklab(84.25% -0.0606 0.1519)
OKLCHoklch(84.25% 0.164 111.7)
XYZxyz(50.5113, 61.2485, 14.3145)
Luminance0.6125 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD542 #4842D5
analogous
#D59242 #CFD542 #86D542
triadic
#CFD542 #42CFD5 #D542CF
tetradic
#CFD542 #42D592 #4842D5 #D54286
square
#CFD542 #42D592 #4842D5 #D54286
split-complementary
#CFD542 #4286D5 #9242D5
monochromatic
#7C801C #ADB228 #CFD542 #DCE074 #E8EBA6

Accessibility & contrast

On white

1.58
#CFD542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.25
#CFD542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD542
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD542#FFFFFF#000000##000000
##CFD5421.001.5813.2513.25
#FFFFFF1.581.0021.0021.00
#00000013.2521.001.001.00
##00000013.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CB2A
Deuteranopia (green-blind)
#E6CF4D
Tritanopia (blue-blind)
#DDC8B8
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #cfd542;
/* rgb */ color: rgb(207, 213, 66);
/* oklch */ color: oklch(84.3% 0.164 111.7);
Tailwind
colors: {
  custom: {
    50: '#e1e17f',
    500: '#cfd542',
    950: '#000000',
  },
}
SCSS
$custom: #cfd542;
$custom-light: #e1e17f;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd542",
  "rgb": {
    "r": 207,
    "g": 213,
    "b": 66
  },
  "hsl": {
    "h": 62.449,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.8425,
    "c": 0.16351,
    "h": 111.7
  },
  "luminance": 0.61247
}

Semantic roles & 50–950 ramp

primary
#CFD542
secondary
#373487
accent
#41E748
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CFD542

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

Preview Lab → · Contrast checker → · Palette generator →

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