#CDC78E#CDC78E

#CDC78E is a very light, moderate yellow. Relative luminance 0.558; OKLCH L 82.1% C 0.075 H 102.8°. Best body text is #000000 at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#CDC78E
RGBrgb(205, 199, 142)
HSLhsl(54, 39%, 68%)
HSVhsv(54, 31%, 80%)
CMYKcmyk(0%, 2.9%, 30.7%, 19.6%)
CIE-LABlab(79.49, -6.67, 29.36)
CIE-LCHlch(79.49, 30.11, 102.79°)
OKLaboklab(82.08% -0.0167 0.0733)
OKLCHoklch(82.08% 0.075 102.8)
XYZxyz(50.4831, 55.7800, 33.6932)
Luminance0.5578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC78E #8E94CD
analogous
#CDA78E #CDC78E #B3CD8E
triadic
#CDC78E #8ECDC7 #C78ECD
tetradic
#CDC78E #8ECDA7 #8E94CD #CD8EB3
square
#CDC78E #8ECDA7 #8E94CD #CD8EB3
split-complementary
#CDC78E #8EB3CD #A78ECD
monochromatic
#9C9345 #BAB264 #CDC78E #E0DCB8 #F3F1E3

Accessibility & contrast

On white

1.73
#CDC78E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.16
#CDC78E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC78E
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC78E#FFFFFF#000000##000000
##CDC78E1.001.7312.1612.16
#FFFFFF1.731.0021.0021.00
#00000012.1621.001.001.00
##00000012.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1C38A
Deuteranopia (green-blind)
#D3C690
Tritanopia (blue-blind)
#D6BFB8
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc78e;
/* rgb */ color: rgb(205, 199, 142);
/* oklch */ color: oklch(82.1% 0.075 102.8);
Tailwind
colors: {
  custom: {
    50: '#ddd7af',
    500: '#cdc78e',
    950: '#000000',
  },
}
SCSS
$custom: #cdc78e;
$custom-light: #ddd7af;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc78e",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 142
  },
  "hsl": {
    "h": 54.286,
    "s": 38.65,
    "l": 68.039
  },
  "oklch": {
    "l": 0.82084,
    "c": 0.07522,
    "h": 102.8
  },
  "luminance": 0.55779
}

Semantic roles & 50–950 ramp

primary
#CDC78E
secondary
#5D64A2
accent
#40B234
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC78E

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

Preview Lab → · Contrast checker → · Palette generator →

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