#CDC98D#CDC98D

#CDC98D is a very light, moderate yellow. Relative luminance 0.567; OKLCH L 82.5% C 0.079 H 104.8°. Best body text is #000000 at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#CDC98D
RGBrgb(205, 201, 141)
HSLhsl(56, 39%, 68%)
HSVhsv(56, 31%, 80%)
CMYKcmyk(0%, 2%, 31.2%, 19.6%)
CIE-LABlab(80.00, -7.82, 30.56)
CIE-LCHlch(80.00, 31.54, 104.36°)
OKLaboklab(82.48% -0.0201 0.0762)
OKLCHoklch(82.48% 0.079 104.8)
XYZxyz(50.8716, 56.6765, 33.4540)
Luminance0.5668 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC98D #8D91CD
analogous
#CDA98D #CDC98D #B1CD8D
triadic
#CDC98D #8DCDC9 #C98DCD
tetradic
#CDC98D #8DCDA9 #8D91CD #CD8DB1
square
#CDC98D #8DCDA9 #8D91CD #CD8DB1
split-complementary
#CDC98D #8DB1CD #A98DCD
monochromatic
#9B9644 #BAB562 #CDC98D #E0DDB8 #F2F1E2

Accessibility & contrast

On white

1.70
#CDC98D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.34
#CDC98D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC98D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC98D#FFFFFF#000000##000000
##CDC98D1.001.7012.3412.34
#FFFFFF1.701.0021.0021.00
#00000012.3421.001.001.00
##00000012.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C589
Deuteranopia (green-blind)
#D5C88F
Tritanopia (blue-blind)
#D6C1B9
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdc98d;
/* rgb */ color: rgb(205, 201, 141);
/* oklch */ color: oklch(82.5% 0.079 104.8);
Tailwind
colors: {
  custom: {
    50: '#ddd9af',
    500: '#cdc98d',
    950: '#000000',
  },
}
SCSS
$custom: #cdc98d;
$custom-light: #ddd9af;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc98d",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 141
  },
  "hsl": {
    "h": 56.25,
    "s": 39.024,
    "l": 67.843
  },
  "oklch": {
    "l": 0.82481,
    "c": 0.07875,
    "h": 104.8
  },
  "luminance": 0.56676
}

Semantic roles & 50–950 ramp

primary
#CDC98D
secondary
#5C61A2
accent
#3BB233
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC98D

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

Preview Lab → · Contrast checker → · Palette generator →

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