#CDC842#CDC842

#CDC842 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.3% C 0.151 H 107.2°. Best body text is #000000 at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#CDC842
RGBrgb(205, 200, 66)
HSLhsl(58, 58%, 53%)
HSVhsv(58, 68%, 80%)
CMYKcmyk(0%, 2.4%, 67.8%, 19.6%)
CIE-LABlab(78.86, -14.00, 64.46)
CIE-LCHlch(78.86, 65.96, 102.25°)
OKLaboklab(81.29% -0.0447 0.1442)
OKLCHoklch(81.29% 0.151 107.2)
XYZxyz(46.8162, 54.6826, 13.2419)
Luminance0.5468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC842 #4247CD
analogous
#CD8242 #CDC842 #8CCD42
triadic
#CDC842 #42CDC8 #C842CD
tetradic
#CDC842 #42CD82 #4247CD #CD428C
square
#CDC842 #42CD82 #4247CD #CD428C
split-complementary
#CDC842 #428CCD #8242CD
monochromatic
#76721F #A6A22C #CDC842 #DAD672 #E7E4A3

Accessibility & contrast

On white

1.76
#CDC842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.94
#CDC842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC842
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC842#FFFFFF#000000##000000
##CDC8421.001.7611.9411.94
#FFFFFF1.761.0021.0021.00
#00000011.9421.001.001.00
##00000011.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02E
Deuteranopia (green-blind)
#DBC64B
Tritanopia (blue-blind)
#DCBBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc842;
/* rgb */ color: rgb(205, 200, 66);
/* oklch */ color: oklch(81.3% 0.151 107.2);
Tailwind
colors: {
  custom: {
    50: '#e0d87e',
    500: '#cdc842',
    950: '#000000',
  },
}
SCSS
$custom: #cdc842;
$custom-light: #e0d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc842",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 57.842,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.81293,
    "c": 0.15092,
    "h": 107.2
  },
  "luminance": 0.54681
}

Semantic roles & 50–950 ramp

primary
#CDC842
secondary
#35387E
accent
#4CE146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDC842

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

Preview Lab → · Contrast checker → · Palette generator →

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