#CDC98F#CDC98F

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

Color values

HEX#CDC98F
RGBrgb(205, 201, 143)
HSLhsl(56, 38%, 68%)
HSVhsv(56, 30%, 80%)
CMYKcmyk(0%, 2%, 30.2%, 19.6%)
CIE-LABlab(80.03, -7.57, 29.56)
CIE-LCHlch(80.03, 30.51, 104.36°)
OKLaboklab(82.52% -0.0192 0.0738)
OKLCHoklch(82.52% 0.076 104.6)
XYZxyz(51.0217, 56.7366, 34.2448)
Luminance0.5674 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC98F #8F93CD
analogous
#CDAA8F #CDC98F #B2CD8F
triadic
#CDC98F #8FCDC9 #C98FCD
tetradic
#CDC98F #8FCDAA #8F93CD #CD8FB2
square
#CDC98F #8FCDAA #8F93CD #CD8FB2
split-complementary
#CDC98F #8FB2CD #AA8FCD
monochromatic
#9C9646 #BAB565 #CDC98F #E0DDB9 #F3F2E4

Accessibility & contrast

On white

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

On black

12.35
#CDC98F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC98F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC98F#FFFFFF#000000##000000
##CDC98F1.001.7012.3512.35
#FFFFFF1.701.0021.0021.00
#00000012.3521.001.001.00
##00000012.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C58B
Deuteranopia (green-blind)
#D5C891
Tritanopia (blue-blind)
#D6C1BA
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdc98f;
/* rgb */ color: rgb(205, 201, 143);
/* oklch */ color: oklch(82.5% 0.076 104.6);
Tailwind
colors: {
  custom: {
    50: '#ddd9b0',
    500: '#cdc98f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc98f;
$custom-light: #ddd9b0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc98f",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 143
  },
  "hsl": {
    "h": 56.129,
    "s": 38.272,
    "l": 68.235
  },
  "oklch": {
    "l": 0.82519,
    "c": 0.07631,
    "h": 104.6
  },
  "luminance": 0.56736
}

Semantic roles & 50–950 ramp

primary
#CDC98F
secondary
#5E62A2
accent
#3CB134
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC98F

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

Preview Lab → · Contrast checker → · Palette generator →

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