#CDC898#CDC898

#CDC898 is a very light, moderate yellow. Relative luminance 0.566; OKLCH L 82.5% C 0.064 H 102.7°. Best body text is #000000 at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#CDC898
RGBrgb(205, 200, 152)
HSLhsl(54, 35%, 70%)
HSVhsv(54, 26%, 80%)
CMYKcmyk(0%, 2.4%, 25.9%, 19.6%)
CIE-LABlab(79.93, -5.87, 24.70)
CIE-LCHlch(79.93, 25.39, 103.36°)
OKLaboklab(82.49% -0.0141 0.0624)
OKLCHoklch(82.49% 0.064 102.7)
XYZxyz(51.4987, 56.5556, 37.9031)
Luminance0.5655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC898 #989DCD
analogous
#CDAE98 #CDC898 #B7CD98
triadic
#CDC898 #98CDC8 #C898CD
tetradic
#CDC898 #98CDAE #989DCD #CD98B7
square
#CDC898 #98CDAE #989DCD #CD98B7
split-complementary
#CDC898 #98B7CD #AE98CD
monochromatic
#9E964D #B9B26F #CDC898 #E1DEC1 #F5F4EA

Accessibility & contrast

On white

1.71
#CDC898 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.31
#CDC898 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC898
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC898#FFFFFF#000000##000000
##CDC8981.001.7112.3112.31
#FFFFFF1.711.0021.0021.00
#00000012.3121.001.001.00
##00000012.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1C595
Deuteranopia (green-blind)
#D3C79A
Tritanopia (blue-blind)
#D5C1BB
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdc898;
/* rgb */ color: rgb(205, 200, 152);
/* oklch */ color: oklch(82.5% 0.064 102.7);
Tailwind
colors: {
  custom: {
    50: '#dcd8b6',
    500: '#cdc898',
    950: '#000000',
  },
}
SCSS
$custom: #cdc898;
$custom-light: #dcd8b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc898",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 152
  },
  "hsl": {
    "h": 54.34,
    "s": 34.641,
    "l": 70
  },
  "oklch": {
    "l": 0.82491,
    "c": 0.06399,
    "h": 102.7
  },
  "luminance": 0.56555
}

Semantic roles & 50–950 ramp

primary
#CDC898
secondary
#676DA2
accent
#43AD38
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CDC898

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

Preview Lab → · Contrast checker → · Palette generator →

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