#CDCD40#CDCD40

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

Color values

HEX#CDCD40
RGBrgb(205, 205, 64)
HSLhsl(60, 59%, 53%)
HSVhsv(60, 69%, 80%)
CMYKcmyk(0%, 0%, 68.8%, 19.6%)
CIE-LABlab(80.19, -16.61, 66.53)
CIE-LCHlch(80.19, 68.57, 104.01°)
OKLaboklab(82.35% -0.0522 0.1482)
OKLCHoklch(82.35% 0.157 109.4)
XYZxyz(47.9352, 57.0133, 13.3291)
Luminance0.5701 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD40 #4040CD
analogous
#CD8640 #CDCD40 #86CD40
triadic
#CDCD40 #40CDCD #CD40CD
tetradic
#CDCD40 #40CD86 #4040CD #CD4086
square
#CDCD40 #40CD86 #4040CD #CD4086
split-complementary
#CDCD40 #4086CD #8640CD
monochromatic
#74741E #A5A52B #CDCD40 #DADA71 #E6E6A1

Accessibility & contrast

On white

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

On black

12.40
#CDCD40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD40
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD40#FFFFFF#000000##000000
##CDCD401.001.6912.4012.40
#FFFFFF1.691.0021.0021.00
#00000012.4021.001.001.00
##00000012.4021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdcd40;
/* rgb */ color: rgb(205, 205, 64);
/* oklch */ color: oklch(82.3% 0.157 109.4);
Tailwind
colors: {
  custom: {
    50: '#e0dc7d',
    500: '#cdcd40',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd40;
$custom-light: #e0dc7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd40",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.82349,
    "c": 0.15711,
    "h": 109.4
  },
  "luminance": 0.57012
}

Semantic roles & 50–950 ramp

primary
#CDCD40
secondary
#34347D
accent
#46E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CDCD40

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

Preview Lab → · Contrast checker → · Palette generator →

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