#CDC371#CDC371

#CDC371 is a light, moderate yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.104 H 102.3°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#CDC371
RGBrgb(205, 195, 113)
HSLhsl(53, 48%, 62%)
HSVhsv(53, 45%, 80%)
CMYKcmyk(0%, 4.9%, 44.9%, 19.6%)
CIE-LABlab(77.99, -7.88, 42.30)
CIE-LCHlch(77.99, 43.03, 100.55°)
OKLaboklab(80.76% -0.0222 0.1019)
OKLCHoklch(80.76% 0.104 102.3)
XYZxyz(47.6737, 53.2030, 23.3775)
Luminance0.5320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC371 #717BCD
analogous
#CD9571 #CDC371 #A9CD71
triadic
#CDC371 #71CDC3 #C371CD
tetradic
#CDC371 #71CD95 #717BCD #CD71A9
square
#CDC371 #71CD95 #717BCD #CD71A9
split-complementary
#CDC371 #71A9CD #9571CD
monochromatic
#918633 #BDB044 #CDC371 #DDD69E #EDE9CC

Accessibility & contrast

On white

1.80
#CDC371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.64
#CDC371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC371
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC371#FFFFFF#000000##000000
##CDC3711.001.8011.6411.64
#FFFFFF1.801.0021.0021.00
#00000011.6421.001.001.00
##00000011.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BE6A
Deuteranopia (green-blind)
#D4C374
Tritanopia (blue-blind)
#D9B9AF
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc371;
/* rgb */ color: rgb(205, 195, 113);
/* oklch */ color: oklch(80.8% 0.104 102.3);
Tailwind
colors: {
  custom: {
    50: '#ded59b',
    500: '#cdc371',
    950: '#000000',
  },
}
SCSS
$custom: #cdc371;
$custom-light: #ded59b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc371",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 113
  },
  "hsl": {
    "h": 53.478,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.80757,
    "c": 0.10426,
    "h": 102.3
  },
  "luminance": 0.53202
}

Semantic roles & 50–950 ramp

primary
#CDC371
secondary
#4B5397
accent
#3ABB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC371

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

Preview Lab → · Contrast checker → · Palette generator →

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