#CDC781#CDC781

#CDC781 is a light, moderate yellow. Relative luminance 0.554; OKLCH L 81.8% C 0.091 H 104.0°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#CDC781
RGBrgb(205, 199, 129)
HSLhsl(55, 43%, 65%)
HSVhsv(55, 37%, 80%)
CMYKcmyk(0%, 2.9%, 37.1%, 19.6%)
CIE-LABlab(79.28, -8.23, 35.82)
CIE-LCHlch(79.28, 36.75, 102.94°)
OKLaboklab(81.85% -0.0219 0.088)
OKLCHoklch(81.85% 0.091 104)
XYZxyz(49.5634, 55.4121, 28.8493)
Luminance0.5541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC781 #8187CD
analogous
#CDA181 #CDC781 #ADCD81
triadic
#CDC781 #81CDC7 #C781CD
tetradic
#CDC781 #81CDA1 #8187CD #CD81AD
square
#CDC781 #81CDA1 #8187CD #CD81AD
split-complementary
#CDC781 #81ADCD #A181CD
monochromatic
#97903C #BCB455 #CDC781 #DEDAAD #F0EED9

Accessibility & contrast

On white

1.74
#CDC781 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.08
#CDC781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC781
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC781#FFFFFF#000000##000000
##CDC7811.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C27C
Deuteranopia (green-blind)
#D5C684
Tritanopia (blue-blind)
#D8BEB5
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc781;
/* rgb */ color: rgb(205, 199, 129);
/* oklch */ color: oklch(81.8% 0.091 104.0);
Tailwind
colors: {
  custom: {
    50: '#ddd7a6',
    500: '#cdc781',
    950: '#000000',
  },
}
SCSS
$custom: #cdc781;
$custom-light: #ddd7a6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc781",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 129
  },
  "hsl": {
    "h": 55.263,
    "s": 43.182,
    "l": 65.49
  },
  "oklch": {
    "l": 0.81849,
    "c": 0.09068,
    "h": 104
  },
  "luminance": 0.55411
}

Semantic roles & 50–950 ramp

primary
#CDC781
secondary
#545A9E
accent
#3AB62F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC781

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

Preview Lab → · Contrast checker → · Palette generator →

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