#CDC299#CDC299

#CDC299 is a light, muted yellow. Relative luminance 0.539; OKLCH L 81.3% C 0.056 H 94.8°. Best body text is #000000 at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#CDC299
RGBrgb(205, 194, 153)
HSLhsl(47, 34%, 70%)
HSVhsv(47, 25%, 80%)
CMYKcmyk(0%, 5.4%, 25.4%, 19.6%)
CIE-LABlab(78.38, -2.61, 22.06)
CIE-LCHlch(78.38, 22.22, 96.73°)
OKLaboklab(81.27% -0.0047 0.056)
OKLCHoklch(81.27% 0.056 94.8)
XYZxyz(50.2186, 53.8637, 37.8821)
Luminance0.5386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC299 #99A4CD
analogous
#CDA899 #CDC299 #BECD99
triadic
#CDC299 #99CDC2 #C299CD
tetradic
#CDC299 #99CDA8 #99A4CD #CD99BE
square
#CDC299 #99CDA8 #99A4CD #CD99BE
split-complementary
#CDC299 #99BECD #A899CD
monochromatic
#9E8D4D #B9A970 #CDC299 #E1DBC2 #F5F3EA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC299#FFFFFF#000000##000000
##CDC2991.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)
#CBC096
Deuteranopia (green-blind)
#CEC49A
Tritanopia (blue-blind)
#D5BCB7
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc299;
/* rgb */ color: rgb(205, 194, 153);
/* oklch */ color: oklch(81.3% 0.056 94.8);
Tailwind
colors: {
  custom: {
    50: '#dcd4b7',
    500: '#cdc299',
    950: '#000000',
  },
}
SCSS
$custom: #cdc299;
$custom-light: #dcd4b7;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc299",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 153
  },
  "hsl": {
    "h": 47.308,
    "s": 34.211,
    "l": 70.196
  },
  "oklch": {
    "l": 0.81275,
    "c": 0.05623,
    "h": 94.8
  },
  "luminance": 0.53863
}

Semantic roles & 50–950 ramp

primary
#CDC299
secondary
#6874A2
accent
#51AD38
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CDC299

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

Preview Lab → · Contrast checker → · Palette generator →

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