#CDC98E#CDC98E

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

Color values

HEX#CDC98E
RGBrgb(205, 201, 142)
HSLhsl(56, 39%, 68%)
HSVhsv(56, 31%, 80%)
CMYKcmyk(0%, 2%, 30.7%, 19.6%)
CIE-LABlab(80.01, -7.70, 30.06)
CIE-LCHlch(80.01, 31.03, 104.36°)
OKLaboklab(82.5% -0.0197 0.075)
OKLCHoklch(82.5% 0.078 104.7)
XYZxyz(50.9463, 56.7064, 33.8476)
Luminance0.5671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC98E #8E92CD
analogous
#CDA98E #CDC98E #B1CD8E
triadic
#CDC98E #8ECDC9 #C98ECD
tetradic
#CDC98E #8ECDA9 #8E92CD #CD8EB1
square
#CDC98E #8ECDA9 #8E92CD #CD8EB1
split-complementary
#CDC98E #8EB1CD #A98ECD
monochromatic
#9C9645 #BAB564 #CDC98E #E0DDB8 #F3F2E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC98E#FFFFFF#000000##000000
##CDC98E1.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)
#D3C58A
Deuteranopia (green-blind)
#D5C890
Tritanopia (blue-blind)
#D6C1BA
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdc98e;
/* rgb */ color: rgb(205, 201, 142);
/* oklch */ color: oklch(82.5% 0.078 104.7);
Tailwind
colors: {
  custom: {
    50: '#ddd9af',
    500: '#cdc98e',
    950: '#000000',
  },
}
SCSS
$custom: #cdc98e;
$custom-light: #ddd9af;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc98e",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 142
  },
  "hsl": {
    "h": 56.19,
    "s": 38.65,
    "l": 68.039
  },
  "oklch": {
    "l": 0.825,
    "c": 0.07753,
    "h": 104.7
  },
  "luminance": 0.56705
}

Semantic roles & 50–950 ramp

primary
#CDC98E
secondary
#5D62A2
accent
#3CB234
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC98E

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

Preview Lab → · Contrast checker → · Palette generator →

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