#CDCA71#CDCA71

#CDCA71 is a very light, moderate yellow. Relative luminance 0.564; OKLCH L 82.2% C 0.112 H 106.9°. Best body text is #000000 at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#CDCA71
RGBrgb(205, 202, 113)
HSLhsl(58, 48%, 62%)
HSVhsv(58, 45%, 80%)
CMYKcmyk(0%, 1.5%, 44.9%, 19.6%)
CIE-LABlab(79.85, -11.46, 44.59)
CIE-LCHlch(79.85, 46.04, 104.42°)
OKLaboklab(82.23% -0.0325 0.107)
OKLCHoklch(82.23% 0.112 106.9)
XYZxyz(49.2790, 56.4137, 23.9126)
Luminance0.5641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCA71 #7174CD
analogous
#CD9C71 #CDCA71 #A2CD71
triadic
#CDCA71 #71CDCA #CA71CD
tetradic
#CDCA71 #71CD9C #7174CD #CD71A2
square
#CDCA71 #71CD9C #7174CD #CD71A2
split-complementary
#CDCA71 #71A2CD #9C71CD
monochromatic
#918E33 #BDB944 #CDCA71 #DDDB9E #EDECCC

Accessibility & contrast

On white

1.71
#CDCA71 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.28
#CDCA71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCA71
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCA71#FFFFFF#000000##000000
##CDCA711.001.7112.2812.28
#FFFFFF1.711.0021.0021.00
#00000012.2821.001.001.00
##00000012.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C46A
Deuteranopia (green-blind)
#D9C875
Tritanopia (blue-blind)
#D9C0B5
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdca71;
/* rgb */ color: rgb(205, 202, 113);
/* oklch */ color: oklch(82.2% 0.112 106.9);
Tailwind
colors: {
  custom: {
    50: '#deda9b',
    500: '#cdca71',
    950: '#000000',
  },
}
SCSS
$custom: #cdca71;
$custom-light: #deda9b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdca71",
  "rgb": {
    "r": 205,
    "g": 202,
    "b": 113
  },
  "hsl": {
    "h": 58.043,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.82229,
    "c": 0.1118,
    "h": 106.9
  },
  "luminance": 0.56412
}

Semantic roles & 50–950 ramp

primary
#CDCA71
secondary
#4B4E97
accent
#2FBB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDCA71

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

Preview Lab → · Contrast checker → · Palette generator →

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