#CDD842#CDD842

#CDD842 is a very light, vivid yellow. Relative luminance 0.625; OKLCH L 84.7% C 0.167 H 113.6°. Best body text is #000000 at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#CDD842
RGBrgb(205, 216, 66)
HSLhsl(64, 66%, 55%)
HSVhsv(64, 69%, 85%)
CMYKcmyk(5.1%, 0%, 69.4%, 15.3%)
CIE-LABlab(83.17, -21.91, 68.75)
CIE-LCHlch(83.17, 72.16, 107.68°)
OKLaboklab(84.74% -0.0669 0.1532)
OKLCHoklch(84.74% 0.167 113.6)
XYZxyz(50.7175, 62.4852, 14.5423)
Luminance0.6248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD842 #4D42D8
analogous
#D89842 #CDD842 #82D842
triadic
#CDD842 #42CDD8 #D842CD
tetradic
#CDD842 #42D898 #4D42D8 #D84282
square
#CDD842 #42D898 #4D42D8 #D84282
split-complementary
#CDD842 #4282D8 #9842D8
monochromatic
#7D841B #ACB726 #CDD842 #DAE275 #E8EDA7

Accessibility & contrast

On white

1.56
#CDD842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.50
#CDD842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD842
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD842#FFFFFF#000000##000000
##CDD8421.001.5613.5013.50
#FFFFFF1.561.0021.0021.00
#00000013.5021.001.001.00
##00000013.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE29
Deuteranopia (green-blind)
#E7D14D
Tritanopia (blue-blind)
#DACBBB
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #cdd842;
/* rgb */ color: rgb(205, 216, 66);
/* oklch */ color: oklch(84.7% 0.167 113.6);
Tailwind
colors: {
  custom: {
    50: '#e0e380',
    500: '#cdd842',
    950: '#000000',
  },
}
SCSS
$custom: #cdd842;
$custom-light: #e0e380;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd842",
  "rgb": {
    "r": 205,
    "g": 216,
    "b": 66
  },
  "hsl": {
    "h": 64.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.8474,
    "c": 0.16715,
    "h": 113.6
  },
  "luminance": 0.62484
}

Semantic roles & 50–950 ramp

primary
#CDD842
secondary
#3A338B
accent
#3FE94C
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CDD842

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

Preview Lab → · Contrast checker → · Palette generator →

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