#CDCD7F#CDCD7F

#CDCD7F is a very light, moderate yellow. Relative luminance 0.582; OKLCH L 83.1% C 0.100 H 108.4°. Best body text is #000000 at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#CDCD7F
RGBrgb(205, 205, 127)
HSLhsl(60, 44%, 65%)
HSVhsv(60, 38%, 80%)
CMYKcmyk(0%, 0%, 38%, 19.6%)
CIE-LABlab(80.84, -11.52, 38.84)
CIE-LCHlch(80.84, 40.51, 106.53°)
OKLaboklab(83.08% -0.0315 0.0948)
OKLCHoklch(83.08% 0.1 108.4)
XYZxyz(50.8396, 58.1751, 28.6253)
Luminance0.5817 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD7F #7F7FCD
analogous
#CDA67F #CDCD7F #A6CD7F
triadic
#CDCD7F #7FCDCD #CD7FCD
tetradic
#CDCD7F #7FCDA6 #7F7FCD #CD7FA6
square
#CDCD7F #7FCDA6 #7F7FCD #CD7FA6
split-complementary
#CDCD7F #7FA6CD #A67FCD
monochromatic
#97973B #BCBC53 #CDCD7F #DEDEAB #EFEFD7

Accessibility & contrast

On white

1.66
#CDCD7F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.63
#CDCD7F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD7F
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD7F#FFFFFF#000000##000000
##CDCD7F1.001.6612.6312.63
#FFFFFF1.661.0021.0021.00
#00000012.6321.001.001.00
##00000012.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C779
Deuteranopia (green-blind)
#DACA82
Tritanopia (blue-blind)
#D7C4BA
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cdcd7f;
/* rgb */ color: rgb(205, 205, 127);
/* oklch */ color: oklch(83.1% 0.100 108.4);
Tailwind
colors: {
  custom: {
    50: '#dddca5',
    500: '#cdcd7f',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd7f;
$custom-light: #dddca5;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd7f",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 127
  },
  "hsl": {
    "h": 60,
    "s": 43.82,
    "l": 65.098
  },
  "oklch": {
    "l": 0.83076,
    "c": 0.09992,
    "h": 108.4
  },
  "luminance": 0.58174
}

Semantic roles & 50–950 ramp

primary
#CDCD7F
secondary
#53539D
accent
#2FB72F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15150F
muted
#848480

Preview Lab

Preview with #CDCD7F

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

Preview Lab → · Contrast checker → · Palette generator →

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