#CDC398#CDC398

#CDC398 is a light, muted yellow. Relative luminance 0.543; OKLCH L 81.5% C 0.058 H 96.5°. Best body text is #000000 at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#CDC398
RGBrgb(205, 195, 152)
HSLhsl(49, 35%, 70%)
HSVhsv(49, 26%, 80%)
CMYKcmyk(0%, 4.9%, 25.9%, 19.6%)
CIE-LABlab(78.62, -3.27, 22.92)
CIE-LCHlch(78.62, 23.15, 98.11°)
OKLaboklab(81.46% -0.0066 0.0581)
OKLCHoklch(81.46% 0.058 96.5)
XYZxyz(50.3596, 54.2774, 37.5234)
Luminance0.5428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC398 #98A2CD
analogous
#CDA898 #CDC398 #BDCD98
triadic
#CDC398 #98CDC3 #C398CD
tetradic
#CDC398 #98CDA8 #98A2CD #CD98BD
square
#CDC398 #98CDA8 #98A2CD #CD98BD
split-complementary
#CDC398 #98BDCD #A898CD
monochromatic
#9E8F4D #B9AB6F #CDC398 #E1DBC1 #F5F3EA

Accessibility & contrast

On white

1.77
#CDC398 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.86
#CDC398 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC398
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC398#FFFFFF#000000##000000
##CDC3981.001.7711.8611.86
#FFFFFF1.771.0021.0021.00
#00000011.8621.001.001.00
##00000011.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCC095
Deuteranopia (green-blind)
#CFC499
Tritanopia (blue-blind)
#D5BDB7
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc398;
/* rgb */ color: rgb(205, 195, 152);
/* oklch */ color: oklch(81.5% 0.058 96.5);
Tailwind
colors: {
  custom: {
    50: '#dcd5b6',
    500: '#cdc398',
    950: '#000000',
  },
}
SCSS
$custom: #cdc398;
$custom-light: #dcd5b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc398",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 152
  },
  "hsl": {
    "h": 48.679,
    "s": 34.641,
    "l": 70
  },
  "oklch": {
    "l": 0.81459,
    "c": 0.05849,
    "h": 96.5
  },
  "luminance": 0.54276
}

Semantic roles & 50–950 ramp

primary
#CDC398
secondary
#6772A2
accent
#4EAD38
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CDC398

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

Preview Lab → · Contrast checker → · Palette generator →

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