#CDCD42#CDCD42

#CDCD42 is a very light, vivid yellow. Relative luminance 0.570; OKLCH L 82.4% C 0.156 H 109.4°. Best body text is #000000 at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#CDCD42
RGBrgb(205, 205, 66)
HSLhsl(60, 58%, 53%)
HSVhsv(60, 68%, 80%)
CMYKcmyk(0%, 0%, 67.8%, 19.6%)
CIE-LABlab(80.20, -16.50, 65.80)
CIE-LCHlch(80.20, 67.84, 104.08°)
OKLaboklab(82.36% -0.0517 0.147)
OKLCHoklch(82.36% 0.156 109.4)
XYZxyz(47.9932, 57.0365, 13.6342)
Luminance0.5704 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD42 #4242CD
analogous
#CD8742 #CDCD42 #87CD42
triadic
#CDCD42 #42CDCD #CD42CD
tetradic
#CDCD42 #42CD87 #4242CD #CD4287
square
#CDCD42 #42CD87 #4242CD #CD4287
split-complementary
#CDCD42 #4287CD #8742CD
monochromatic
#76761F #A6A62C #CDCD42 #DADA72 #E7E7A3

Accessibility & contrast

On white

1.69
#CDCD42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.41
#CDCD42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD42
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD42#FFFFFF#000000##000000
##CDCD421.001.6912.4112.41
#FFFFFF1.691.0021.0021.00
#00000012.4121.001.001.00
##00000012.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC52C
Deuteranopia (green-blind)
#DFC94C
Tritanopia (blue-blind)
#DBC0B1
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cdcd42;
/* rgb */ color: rgb(205, 205, 66);
/* oklch */ color: oklch(82.4% 0.156 109.4);
Tailwind
colors: {
  custom: {
    50: '#e0dc7f',
    500: '#cdcd42',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd42;
$custom-light: #e0dc7f;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd42",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.82364,
    "c": 0.15582,
    "h": 109.4
  },
  "luminance": 0.57035
}

Semantic roles & 50–950 ramp

primary
#CDCD42
secondary
#35357E
accent
#46E146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CDCD42

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

Preview Lab → · Contrast checker → · Palette generator →

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