#CDCC40#CDCC40

#CDCC40 is a very light, vivid yellow. Relative luminance 0.565; OKLCH L 82.1% C 0.156 H 109.0°. Best body text is #000000 at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#CDCC40
RGBrgb(205, 204, 64)
HSLhsl(60, 59%, 53%)
HSVhsv(60, 69%, 80%)
CMYKcmyk(0%, 0.5%, 68.8%, 19.6%)
CIE-LABlab(79.92, -16.11, 66.27)
CIE-LCHlch(79.92, 68.20, 103.66°)
OKLaboklab(82.13% -0.0508 0.1476)
OKLCHoklch(82.13% 0.156 109)
XYZxyz(47.6968, 56.5365, 13.2496)
Luminance0.5654 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCC40 #4041CD
analogous
#CD8540 #CDCC40 #88CD40
triadic
#CDCC40 #40CDCC #CC40CD
tetradic
#CDCC40 #40CD85 #4041CD #CD4088
square
#CDCC40 #40CD85 #4041CD #CD4088
split-complementary
#CDCC40 #4088CD #8540CD
monochromatic
#74741E #A5A42B #CDCC40 #DAD971 #E6E6A1

Accessibility & contrast

On white

1.71
#CDCC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.31
#CDCC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCC40
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCC40#FFFFFF#000000##000000
##CDCC401.001.7112.3112.31
#FFFFFF1.711.0021.0021.00
#00000012.3121.001.001.00
##00000012.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC429
Deuteranopia (green-blind)
#DEC84A
Tritanopia (blue-blind)
#DBBFB0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdcc40;
/* rgb */ color: rgb(205, 204, 64);
/* oklch */ color: oklch(82.1% 0.156 109.0);
Tailwind
colors: {
  custom: {
    50: '#e0db7d',
    500: '#cdcc40',
    950: '#000000',
  },
}
SCSS
$custom: #cdcc40;
$custom-light: #e0db7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcc40",
  "rgb": {
    "r": 205,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 59.574,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.82134,
    "c": 0.15613,
    "h": 109
  },
  "luminance": 0.56535
}

Semantic roles & 50–950 ramp

primary
#CDCC40
secondary
#34357D
accent
#47E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDCC40

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

Preview Lab → · Contrast checker → · Palette generator →

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