#CDCD71#CDCD71

#CDCD71 is a very light, moderate yellow. Relative luminance 0.578; OKLCH L 82.9% C 0.115 H 108.7°. Best body text is #000000 at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#CDCD71
RGBrgb(205, 205, 113)
HSLhsl(60, 48%, 62%)
HSVhsv(60, 45%, 80%)
CMYKcmyk(0%, 0%, 44.9%, 19.6%)
CIE-LABlab(80.65, -12.98, 45.57)
CIE-LCHlch(80.65, 47.38, 105.90°)
OKLaboklab(82.86% -0.0369 0.1091)
OKLCHoklch(82.86% 0.115 108.7)
XYZxyz(49.9897, 57.8352, 24.1495)
Luminance0.5783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD71 #7171CD
analogous
#CD9F71 #CDCD71 #9FCD71
triadic
#CDCD71 #71CDCD #CD71CD
tetradic
#CDCD71 #71CD9F #7171CD #CD719F
square
#CDCD71 #71CD9F #7171CD #CD719F
split-complementary
#CDCD71 #719FCD #9F71CD
monochromatic
#919133 #BDBD44 #CDCD71 #DDDD9E #EDEDCC

Accessibility & contrast

On white

1.67
#CDCD71 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.57
#CDCD71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD71
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD71#FFFFFF#000000##000000
##CDCD711.001.6712.5712.57
#FFFFFF1.671.0021.0021.00
#00000012.5721.001.001.00
##00000012.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC669
Deuteranopia (green-blind)
#DBCA75
Tritanopia (blue-blind)
#D8C3B7
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cdcd71;
/* rgb */ color: rgb(205, 205, 113);
/* oklch */ color: oklch(82.9% 0.115 108.7);
Tailwind
colors: {
  custom: {
    50: '#dedc9b',
    500: '#cdcd71',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd71;
$custom-light: #dedc9b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd71",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 113
  },
  "hsl": {
    "h": 60,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.82864,
    "c": 0.1152,
    "h": 108.7
  },
  "luminance": 0.57834
}

Semantic roles & 50–950 ramp

primary
#CDCD71
secondary
#4B4B97
accent
#2ABB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150E
muted
#84847F

Preview Lab

Preview with #CDCD71

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

Preview Lab → · Contrast checker → · Palette generator →

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