#CDC38C#CDC38C

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

Color values

HEX#CDC38C
RGBrgb(205, 195, 140)
HSLhsl(51, 39%, 68%)
HSVhsv(51, 32%, 80%)
CMYKcmyk(0%, 4.9%, 31.7%, 19.6%)
CIE-LABlab(78.41, -4.84, 28.96)
CIE-LCHlch(78.41, 29.36, 99.50°)
OKLaboklab(81.22% -0.0115 0.0724)
OKLCHoklch(81.22% 0.073 99.1)
XYZxyz(49.4261, 53.9040, 32.6067)
Luminance0.5390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC38C #8C96CD
analogous
#CDA28C #CDC38C #B7CD8C
triadic
#CDC38C #8CCDC3 #C38CCD
tetradic
#CDC38C #8CCDA2 #8C96CD #CD8CB7
square
#CDC38C #8CCDA2 #8C96CD #CD8CB7
split-complementary
#CDC38C #8CB7CD #A28CCD
monochromatic
#9B8E43 #BAAD61 #CDC38C #E0D9B7 #F2F0E1

Accessibility & contrast

On white

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

On black

11.78
#CDC38C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC38C
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC38C#FFFFFF#000000##000000
##CDC38C1.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc38c;
/* rgb */ color: rgb(205, 195, 140);
/* oklch */ color: oklch(81.2% 0.073 99.1);
Tailwind
colors: {
  custom: {
    50: '#ddd5ae',
    500: '#cdc38c',
    950: '#000000',
  },
}
SCSS
$custom: #cdc38c;
$custom-light: #ddd5ae;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc38c",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 140
  },
  "hsl": {
    "h": 50.769,
    "s": 39.394,
    "l": 67.647
  },
  "oklch": {
    "l": 0.81216,
    "c": 0.07327,
    "h": 99.1
  },
  "luminance": 0.53903
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CDC38C

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

Preview Lab → · Contrast checker → · Palette generator →

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