#CDCD78#CDCD78

#CDCD78 is a very light, moderate yellow. Relative luminance 0.580; OKLCH L 83.0% C 0.108 H 108.5°. Best body text is #000000 at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#CDCD78
RGBrgb(205, 205, 120)
HSLhsl(60, 46%, 64%)
HSVhsv(60, 41%, 80%)
CMYKcmyk(0%, 0%, 41.5%, 19.6%)
CIE-LABlab(80.74, -12.28, 42.23)
CIE-LCHlch(80.74, 43.97, 106.21°)
OKLaboklab(82.97% -0.0342 0.1021)
OKLCHoklch(82.97% 0.108 108.5)
XYZxyz(50.3991, 57.9989, 26.3056)
Luminance0.5800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD78 #7878CD
analogous
#CDA278 #CDCD78 #A2CD78
triadic
#CDCD78 #78CDCD #CD78CD
tetradic
#CDCD78 #78CDA2 #7878CD #CD78A2
square
#CDCD78 #78CDA2 #7878CD #CD78A2
split-complementary
#CDCD78 #78A2CD #A278CD
monochromatic
#949437 #BCBC4B #CDCD78 #DEDEA5 #EEEED1

Accessibility & contrast

On white

1.67
#CDCD78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.60
#CDCD78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD78
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD78#FFFFFF#000000##000000
##CDCD781.001.6712.6012.60
#FFFFFF1.671.0021.0021.00
#00000012.6021.001.001.00
##00000012.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C771
Deuteranopia (green-blind)
#DBCA7C
Tritanopia (blue-blind)
#D8C3B8
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cdcd78;
/* rgb */ color: rgb(205, 205, 120);
/* oklch */ color: oklch(83.0% 0.108 108.5);
Tailwind
colors: {
  custom: {
    50: '#dedca0',
    500: '#cdcd78',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd78;
$custom-light: #dedca0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd78",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 120
  },
  "hsl": {
    "h": 60,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.82966,
    "c": 0.10772,
    "h": 108.5
  },
  "luminance": 0.57998
}

Semantic roles & 50–950 ramp

primary
#CDCD78
secondary
#4F4F9A
accent
#2CB92C
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150F
muted
#848480

Preview Lab

Preview with #CDCD78

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

Preview Lab → · Contrast checker → · Palette generator →

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