#CDCD81#CDCD81

#CDCD81 is a very light, moderate yellow. Relative luminance 0.582; OKLCH L 83.1% C 0.098 H 108.3°. Best body text is #000000 at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#CDCD81
RGBrgb(205, 205, 129)
HSLhsl(60, 43%, 65%)
HSVhsv(60, 37%, 80%)
CMYKcmyk(0%, 0%, 37.1%, 19.6%)
CIE-LABlab(80.87, -11.30, 37.86)
CIE-LCHlch(80.87, 39.51, 106.62°)
OKLaboklab(83.11% -0.0307 0.0927)
OKLCHoklch(83.11% 0.098 108.3)
XYZxyz(50.9712, 58.2277, 29.3186)
Luminance0.5823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD81 #8181CD
analogous
#CDA781 #CDCD81 #A7CD81
triadic
#CDCD81 #81CDCD #CD81CD
tetradic
#CDCD81 #81CDA7 #8181CD #CD81A7
square
#CDCD81 #81CDA7 #8181CD #CD81A7
split-complementary
#CDCD81 #81A7CD #A781CD
monochromatic
#97973C #BCBC55 #CDCD81 #DEDEAD #F0F0D9

Accessibility & contrast

On white

1.66
#CDCD81 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.65
#CDCD81 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD81
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD81#FFFFFF#000000##000000
##CDCD811.001.6612.6512.65
#FFFFFF1.661.0021.0021.00
#00000012.6521.001.001.00
##00000012.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C77B
Deuteranopia (green-blind)
#DACA84
Tritanopia (blue-blind)
#D7C4BA
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cdcd81;
/* rgb */ color: rgb(205, 205, 129);
/* oklch */ color: oklch(83.1% 0.098 108.3);
Tailwind
colors: {
  custom: {
    50: '#dddca6',
    500: '#cdcd81',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd81;
$custom-light: #dddca6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd81",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 129
  },
  "hsl": {
    "h": 60,
    "s": 43.182,
    "l": 65.49
  },
  "oklch": {
    "l": 0.83108,
    "c": 0.09765,
    "h": 108.3
  },
  "luminance": 0.58227
}

Semantic roles & 50–950 ramp

primary
#CDCD81
secondary
#54549E
accent
#2FB62F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15150F
muted
#848480

Preview Lab

Preview with #CDCD81

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

Preview Lab → · Contrast checker → · Palette generator →

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