#CDD742#CDD742

#CDD742 is a very light, vivid yellow. Relative luminance 0.620; OKLCH L 84.5% C 0.166 H 113.2°. Best body text is #000000 at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#CDD742
RGBrgb(205, 215, 66)
HSLhsl(64, 65%, 55%)
HSVhsv(64, 69%, 84%)
CMYKcmyk(4.7%, 0%, 69.3%, 15.7%)
CIE-LABlab(82.90, -21.43, 68.48)
CIE-LCHlch(82.90, 71.76, 107.37°)
OKLaboklab(84.52% -0.0655 0.1526)
OKLCHoklch(84.52% 0.166 113.2)
XYZxyz(50.4621, 61.9744, 14.4572)
Luminance0.6197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD742 #4C42D7
analogous
#D79742 #CDD742 #82D742
triadic
#CDD742 #42CDD7 #D742CD
tetradic
#CDD742 #42D797 #4C42D7 #D74282
square
#CDD742 #42D797 #4C42D7 #D74282
split-complementary
#CDD742 #4282D7 #9742D7
monochromatic
#7C831C #ACB526 #CDD742 #DAE275 #E8ECA7

Accessibility & contrast

On white

1.57
#CDD742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.39
#CDD742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD742
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD742#FFFFFF#000000##000000
##CDD7421.001.5713.3913.39
#FFFFFF1.571.0021.0021.00
#00000013.3921.001.001.00
##00000013.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CD29
Deuteranopia (green-blind)
#E7D04D
Tritanopia (blue-blind)
#DACABA
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #cdd742;
/* rgb */ color: rgb(205, 215, 66);
/* oklch */ color: oklch(84.5% 0.166 113.2);
Tailwind
colors: {
  custom: {
    50: '#e0e37f',
    500: '#cdd742',
    950: '#000000',
  },
}
SCSS
$custom: #cdd742;
$custom-light: #e0e37f;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd742",
  "rgb": {
    "r": 205,
    "g": 215,
    "b": 66
  },
  "hsl": {
    "h": 64.027,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84522,
    "c": 0.1661,
    "h": 113.2
  },
  "luminance": 0.61973
}

Semantic roles & 50–950 ramp

primary
#CDD742
secondary
#39348A
accent
#40E84B
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CDD742

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

Preview Lab → · Contrast checker → · Palette generator →

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