#CDC971#CDC971

#CDC971 is a very light, moderate yellow. Relative luminance 0.559; OKLCH L 82.0% C 0.111 H 106.3°. Best body text is #000000 at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#CDC971
RGBrgb(205, 201, 113)
HSLhsl(57, 48%, 62%)
HSVhsv(57, 45%, 80%)
CMYKcmyk(0%, 2%, 44.9%, 19.6%)
CIE-LABlab(79.58, -10.95, 44.26)
CIE-LCHlch(79.58, 45.60, 103.90°)
OKLaboklab(82.02% -0.0311 0.1062)
OKLCHoklch(82.02% 0.111 106.3)
XYZxyz(49.0451, 55.9459, 23.8347)
Luminance0.5595 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC971 #7175CD
analogous
#CD9B71 #CDC971 #A3CD71
triadic
#CDC971 #71CDC9 #C971CD
tetradic
#CDC971 #71CD9B #7175CD #CD71A3
square
#CDC971 #71CD9B #7175CD #CD71A3
split-complementary
#CDC971 #71A3CD #9B71CD
monochromatic
#918D33 #BDB844 #CDC971 #DDDA9E #EDEBCC

Accessibility & contrast

On white

1.72
#CDC971 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.19
#CDC971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC971
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC971#FFFFFF#000000##000000
##CDC9711.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C36A
Deuteranopia (green-blind)
#D8C775
Tritanopia (blue-blind)
#D9BFB4
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc971;
/* rgb */ color: rgb(205, 201, 113);
/* oklch */ color: oklch(82.0% 0.111 106.3);
Tailwind
colors: {
  custom: {
    50: '#ded99b',
    500: '#cdc971',
    950: '#000000',
  },
}
SCSS
$custom: #cdc971;
$custom-light: #ded99b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc971",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 113
  },
  "hsl": {
    "h": 57.391,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.82018,
    "c": 0.11068,
    "h": 106.3
  },
  "luminance": 0.55945
}

Semantic roles & 50–950 ramp

primary
#CDC971
secondary
#4B4E97
accent
#31BB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC971

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

Preview Lab → · Contrast checker → · Palette generator →

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