#CDC771#CDC771

#CDC771 is a light, moderate yellow. Relative luminance 0.550; OKLCH L 81.6% C 0.108 H 105.0°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#CDC771
RGBrgb(205, 199, 113)
HSLhsl(56, 48%, 62%)
HSVhsv(56, 45%, 80%)
CMYKcmyk(0%, 2.9%, 44.9%, 19.6%)
CIE-LABlab(79.05, -9.93, 43.61)
CIE-LCHlch(79.05, 44.73, 102.83°)
OKLaboklab(81.6% -0.0281 0.1048)
OKLCHoklch(81.6% 0.108 105)
XYZxyz(48.5819, 55.0195, 23.6803)
Luminance0.5502 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC771 #7177CD
analogous
#CD9971 #CDC771 #A5CD71
triadic
#CDC771 #71CDC7 #C771CD
tetradic
#CDC771 #71CD99 #7177CD #CD71A5
square
#CDC771 #71CD99 #7177CD #CD71A5
split-complementary
#CDC771 #71A5CD #9971CD
monochromatic
#918B33 #BDB544 #CDC771 #DDD99E #EDEBCC

Accessibility & contrast

On white

1.75
#CDC771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.00
#CDC771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC771
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC771#FFFFFF#000000##000000
##CDC7711.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C16A
Deuteranopia (green-blind)
#D7C675
Tritanopia (blue-blind)
#D9BDB2
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc771;
/* rgb */ color: rgb(205, 199, 113);
/* oklch */ color: oklch(81.6% 0.108 105.0);
Tailwind
colors: {
  custom: {
    50: '#ded79b',
    500: '#cdc771',
    950: '#000000',
  },
}
SCSS
$custom: #cdc771;
$custom-light: #ded79b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc771",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 113
  },
  "hsl": {
    "h": 56.087,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.81596,
    "c": 0.10849,
    "h": 105
  },
  "luminance": 0.55018
}

Semantic roles & 50–950 ramp

primary
#CDC771
secondary
#4B5097
accent
#34BB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC771

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

Preview Lab → · Contrast checker → · Palette generator →

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