#CDCA78#CDCA78

#CDCA78 is a very light, moderate yellow. Relative luminance 0.566; OKLCH L 82.3% C 0.104 H 106.6°. Best body text is #000000 at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#CDCA78
RGBrgb(205, 202, 120)
HSLhsl(58, 46%, 64%)
HSVhsv(58, 41%, 80%)
CMYKcmyk(0%, 1.5%, 41.5%, 19.6%)
CIE-LABlab(79.94, -10.75, 41.23)
CIE-LCHlch(79.94, 42.61, 104.62°)
OKLaboklab(82.33% -0.0299 0.0999)
OKLCHoklch(82.33% 0.104 106.6)
XYZxyz(49.6884, 56.5774, 26.0687)
Luminance0.5658 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCA78 #787BCD
analogous
#CD9F78 #CDCA78 #A5CD78
triadic
#CDCA78 #78CDCA #CA78CD
tetradic
#CDCA78 #78CD9F #787BCD #CD78A5
square
#CDCA78 #78CD9F #787BCD #CD78A5
split-complementary
#CDCA78 #78A5CD #9F78CD
monochromatic
#949137 #BCB84B #CDCA78 #DEDCA5 #EEEDD1

Accessibility & contrast

On white

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

On black

12.32
#CDCA78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCA78
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCA78#FFFFFF#000000##000000
##CDCA781.001.7112.3212.32
#FFFFFF1.711.0021.0021.00
#00000012.3221.001.001.00
##00000012.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C472
Deuteranopia (green-blind)
#D8C87C
Tritanopia (blue-blind)
#D8C0B6
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdca78;
/* rgb */ color: rgb(205, 202, 120);
/* oklch */ color: oklch(82.3% 0.104 106.6);
Tailwind
colors: {
  custom: {
    50: '#dedaa0',
    500: '#cdca78',
    950: '#000000',
  },
}
SCSS
$custom: #cdca78;
$custom-light: #dedaa0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdca78",
  "rgb": {
    "r": 205,
    "g": 202,
    "b": 120
  },
  "hsl": {
    "h": 57.882,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.82332,
    "c": 0.10425,
    "h": 106.6
  },
  "luminance": 0.56576
}

Semantic roles & 50–950 ramp

primary
#CDCA78
secondary
#4F529A
accent
#31B92C
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDCA78

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

Preview Lab → · Contrast checker → · Palette generator →

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