#CDC981#CDC981

#CDC981 is a very light, moderate yellow. Relative luminance 0.563; OKLCH L 82.3% C 0.093 H 105.5°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#CDC981
RGBrgb(205, 201, 129)
HSLhsl(57, 43%, 65%)
HSVhsv(57, 37%, 80%)
CMYKcmyk(0%, 2%, 37.1%, 19.6%)
CIE-LABlab(79.81, -9.26, 36.50)
CIE-LCHlch(79.81, 37.65, 104.23°)
OKLaboklab(82.27% -0.0249 0.0896)
OKLCHoklch(82.27% 0.093 105.5)
XYZxyz(50.0266, 56.3385, 29.0037)
Luminance0.5634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC981 #8185CD
analogous
#CDA381 #CDC981 #ABCD81
triadic
#CDC981 #81CDC9 #C981CD
tetradic
#CDC981 #81CDA3 #8185CD #CD81AB
square
#CDC981 #81CDA3 #8185CD #CD81AB
split-complementary
#CDC981 #81ABCD #A381CD
monochromatic
#97933C #BCB655 #CDC981 #DEDCAD #F0EFD9

Accessibility & contrast

On white

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

On black

12.27
#CDC981 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC981
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC981#FFFFFF#000000##000000
##CDC9811.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C47C
Deuteranopia (green-blind)
#D7C784
Tritanopia (blue-blind)
#D7C0B7
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdc981;
/* rgb */ color: rgb(205, 201, 129);
/* oklch */ color: oklch(82.3% 0.093 105.5);
Tailwind
colors: {
  custom: {
    50: '#ddd9a6',
    500: '#cdc981',
    950: '#000000',
  },
}
SCSS
$custom: #cdc981;
$custom-light: #ddd9a6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc981",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 129
  },
  "hsl": {
    "h": 56.842,
    "s": 43.182,
    "l": 65.49
  },
  "oklch": {
    "l": 0.82267,
    "c": 0.09295,
    "h": 105.5
  },
  "luminance": 0.56337
}

Semantic roles & 50–950 ramp

primary
#CDC981
secondary
#54589E
accent
#36B62F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC981

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

Preview Lab → · Contrast checker → · Palette generator →

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