#CDC38F#CDC38F

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

Color values

HEX#CDC38F
RGBrgb(205, 195, 143)
HSLhsl(50, 38%, 68%)
HSVhsv(50, 30%, 80%)
CMYKcmyk(0%, 4.9%, 30.2%, 19.6%)
CIE-LABlab(78.46, -4.46, 27.46)
CIE-LCHlch(78.46, 27.82, 99.23°)
OKLaboklab(81.27% -0.0103 0.0689)
OKLCHoklch(81.27% 0.07 98.5)
XYZxyz(49.6503, 53.9937, 33.7876)
Luminance0.5399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC38F #8F99CD
analogous
#CDA48F #CDC38F #B8CD8F
triadic
#CDC38F #8FCDC3 #C38FCD
tetradic
#CDC38F #8FCDA4 #8F99CD #CD8FB8
square
#CDC38F #8FCDA4 #8F99CD #CD8FB8
split-complementary
#CDC38F #8FB8CD #A48FCD
monochromatic
#9C8E46 #BAAC65 #CDC38F #E0DAB9 #F3F0E4

Accessibility & contrast

On white

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

On black

11.80
#CDC38F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC38F
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC38F#FFFFFF#000000##000000
##CDC38F1.001.7811.8011.80
#FFFFFF1.781.0021.0021.00
#00000011.8021.001.001.00
##00000011.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDC08C
Deuteranopia (green-blind)
#D0C491
Tritanopia (blue-blind)
#D6BCB5
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc38f;
/* rgb */ color: rgb(205, 195, 143);
/* oklch */ color: oklch(81.3% 0.070 98.5);
Tailwind
colors: {
  custom: {
    50: '#ddd5b0',
    500: '#cdc38f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc38f;
$custom-light: #ddd5b0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc38f",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 143
  },
  "hsl": {
    "h": 50.323,
    "s": 38.272,
    "l": 68.235
  },
  "oklch": {
    "l": 0.81275,
    "c": 0.06962,
    "h": 98.5
  },
  "luminance": 0.53993
}

Semantic roles & 50–950 ramp

primary
#CDC38F
secondary
#5E69A2
accent
#48B134
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC38F

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

Preview Lab → · Contrast checker → · Palette generator →

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