#CDC38E#CDC38E

#CDC38E is a light, moderate yellow. Relative luminance 0.540; OKLCH L 81.3% C 0.071 H 98.7°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#CDC38E
RGBrgb(205, 195, 142)
HSLhsl(50, 39%, 68%)
HSVhsv(50, 31%, 80%)
CMYKcmyk(0%, 4.9%, 30.7%, 19.6%)
CIE-LABlab(78.44, -4.59, 27.96)
CIE-LCHlch(78.44, 28.33, 99.32°)
OKLaboklab(81.26% -0.0107 0.07)
OKLCHoklch(81.26% 0.071 98.7)
XYZxyz(49.5749, 53.9635, 33.3904)
Luminance0.5396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC38E #8E98CD
analogous
#CDA38E #CDC38E #B7CD8E
triadic
#CDC38E #8ECDC3 #C38ECD
tetradic
#CDC38E #8ECDA3 #8E98CD #CD8EB7
square
#CDC38E #8ECDA3 #8E98CD #CD8EB7
split-complementary
#CDC38E #8EB7CD #A38ECD
monochromatic
#9C8E45 #BAAC64 #CDC38E #E0DAB8 #F3F0E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC38E#FFFFFF#000000##000000
##CDC38E1.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)
#CDC08A
Deuteranopia (green-blind)
#D0C490
Tritanopia (blue-blind)
#D7BCB5
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc38e;
/* rgb */ color: rgb(205, 195, 142);
/* oklch */ color: oklch(81.3% 0.071 98.7);
Tailwind
colors: {
  custom: {
    50: '#ddd5af',
    500: '#cdc38e',
    950: '#000000',
  },
}
SCSS
$custom: #cdc38e;
$custom-light: #ddd5af;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc38e",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 142
  },
  "hsl": {
    "h": 50.476,
    "s": 38.65,
    "l": 68.039
  },
  "oklch": {
    "l": 0.81255,
    "c": 0.07084,
    "h": 98.7
  },
  "luminance": 0.53962
}

Semantic roles & 50–950 ramp

primary
#CDC38E
secondary
#5D68A2
accent
#48B234
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC38E

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

Preview Lab → · Contrast checker → · Palette generator →

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