#CDC381#CDC381

#CDC381 is a light, moderate yellow. Relative luminance 0.536; OKLCH L 81.0% C 0.086 H 100.7°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#CDC381
RGBrgb(205, 195, 129)
HSLhsl(52, 43%, 65%)
HSVhsv(52, 37%, 80%)
CMYKcmyk(0%, 4.9%, 37.1%, 19.6%)
CIE-LABlab(78.23, -6.17, 34.45)
CIE-LCHlch(78.23, 35.00, 100.15°)
OKLaboklab(81.01% -0.016 0.0849)
OKLCHoklch(81.01% 0.086 100.7)
XYZxyz(48.6552, 53.5956, 28.5466)
Luminance0.5359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC381 #818BCD
analogous
#CD9D81 #CDC381 #B1CD81
triadic
#CDC381 #81CDC3 #C381CD
tetradic
#CDC381 #81CD9D #818BCD #CD81B1
square
#CDC381 #81CD9D #818BCD #CD81B1
split-complementary
#CDC381 #81B1CD #9D81CD
monochromatic
#978B3C #BCAE55 #CDC381 #DED8AD #F0EDD9

Accessibility & contrast

On white

1.79
#CDC381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#CDC381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC381
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC381#FFFFFF#000000##000000
##CDC3811.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBF7C
Deuteranopia (green-blind)
#D2C384
Tritanopia (blue-blind)
#D8BAB2
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc381;
/* rgb */ color: rgb(205, 195, 129);
/* oklch */ color: oklch(81.0% 0.086 100.7);
Tailwind
colors: {
  custom: {
    50: '#ddd5a6',
    500: '#cdc381',
    950: '#000000',
  },
}
SCSS
$custom: #cdc381;
$custom-light: #ddd5a6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc381",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 129
  },
  "hsl": {
    "h": 52.105,
    "s": 43.182,
    "l": 65.49
  },
  "oklch": {
    "l": 0.81014,
    "c": 0.08635,
    "h": 100.7
  },
  "luminance": 0.53594
}

Semantic roles & 50–950 ramp

primary
#CDC381
secondary
#545E9E
accent
#41B62F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC381

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

Preview Lab → · Contrast checker → · Palette generator →

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