#CDC38B#CDC38B

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

Color values

HEX#CDC38B
RGBrgb(205, 195, 139)
HSLhsl(51, 40%, 67%)
HSVhsv(51, 32%, 80%)
CMYKcmyk(0%, 4.9%, 32.2%, 19.6%)
CIE-LABlab(78.39, -4.97, 29.46)
CIE-LCHlch(78.39, 29.88, 99.57°)
OKLaboklab(81.2% -0.012 0.0735)
OKLCHoklch(81.2% 0.074 99.2)
XYZxyz(49.3527, 53.8746, 32.2201)
Luminance0.5387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC38B #8B95CD
analogous
#CDA28B #CDC38B #B6CD8B
triadic
#CDC38B #8BCDC3 #C38BCD
tetradic
#CDC38B #8BCDA2 #8B95CD #CD8BB6
square
#CDC38B #8BCDA2 #8B95CD #CD8BB6
split-complementary
#CDC38B #8BB6CD #A28BCD
monochromatic
#9B8E43 #BBAD60 #CDC38B #DFD9B6 #F2EFE1

Accessibility & contrast

On white

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

On black

11.77
#CDC38B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC38B
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC38B#FFFFFF#000000##000000
##CDC38B1.001.7811.7711.77
#FFFFFF1.781.0021.0021.00
#00000011.7721.001.001.00
##00000011.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEC087
Deuteranopia (green-blind)
#D1C48D
Tritanopia (blue-blind)
#D7BBB4
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc38b;
/* rgb */ color: rgb(205, 195, 139);
/* oklch */ color: oklch(81.2% 0.074 99.2);
Tailwind
colors: {
  custom: {
    50: '#ddd5ad',
    500: '#cdc38b',
    950: '#000000',
  },
}
SCSS
$custom: #cdc38b;
$custom-light: #ddd5ad;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc38b",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 139
  },
  "hsl": {
    "h": 50.909,
    "s": 39.759,
    "l": 67.451
  },
  "oklch": {
    "l": 0.81197,
    "c": 0.07448,
    "h": 99.2
  },
  "luminance": 0.53873
}

Semantic roles & 50–950 ramp

primary
#CDC38B
secondary
#5B66A1
accent
#46B333
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC38B

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

Preview Lab → · Contrast checker → · Palette generator →

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