#CDC38D#CDC38D

#CDC38D is a light, moderate yellow. Relative luminance 0.539; OKLCH L 81.2% C 0.072 H 98.9°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#CDC38D
RGBrgb(205, 195, 141)
HSLhsl(51, 39%, 68%)
HSVhsv(51, 31%, 80%)
CMYKcmyk(0%, 4.9%, 31.2%, 19.6%)
CIE-LABlab(78.42, -4.72, 28.46)
CIE-LCHlch(78.42, 28.85, 99.41°)
OKLaboklab(81.24% -0.0111 0.0712)
OKLCHoklch(81.24% 0.072 98.9)
XYZxyz(49.5001, 53.9336, 32.9968)
Luminance0.5393 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC38D #8D97CD
analogous
#CDA38D #CDC38D #B7CD8D
triadic
#CDC38D #8DCDC3 #C38DCD
tetradic
#CDC38D #8DCDA3 #8D97CD #CD8DB7
square
#CDC38D #8DCDA3 #8D97CD #CD8DB7
split-complementary
#CDC38D #8DB7CD #A38DCD
monochromatic
#9B8E44 #BAAD62 #CDC38D #E0D9B8 #F2F0E2

Accessibility & contrast

On white

1.78
#CDC38D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.79
#CDC38D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC38D
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC38D#FFFFFF#000000##000000
##CDC38D1.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDC089
Deuteranopia (green-blind)
#D0C48F
Tritanopia (blue-blind)
#D7BBB5
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc38d;
/* rgb */ color: rgb(205, 195, 141);
/* oklch */ color: oklch(81.2% 0.072 98.9);
Tailwind
colors: {
  custom: {
    50: '#ddd5ae',
    500: '#cdc38d',
    950: '#000000',
  },
}
SCSS
$custom: #cdc38d;
$custom-light: #ddd5ae;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc38d",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 141
  },
  "hsl": {
    "h": 50.625,
    "s": 39.024,
    "l": 67.843
  },
  "oklch": {
    "l": 0.81235,
    "c": 0.07206,
    "h": 98.9
  },
  "luminance": 0.53932
}

Semantic roles & 50–950 ramp

primary
#CDC38D
secondary
#5C67A2
accent
#47B233
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC38D

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

Preview Lab → · Contrast checker → · Palette generator →

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