#CDC178#CDC178

#CDC178 is a light, moderate yellow. Relative luminance 0.525; OKLCH L 80.4% C 0.095 H 100.1°. Best body text is #000000 at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#CDC178
RGBrgb(205, 193, 120)
HSLhsl(52, 46%, 64%)
HSVhsv(52, 41%, 80%)
CMYKcmyk(0%, 5.9%, 41.5%, 19.6%)
CIE-LABlab(77.56, -6.13, 38.22)
CIE-LCHlch(77.56, 38.71, 99.11°)
OKLaboklab(80.45% -0.0166 0.0931)
OKLCHoklch(80.45% 0.095 100.1)
XYZxyz(47.6380, 52.4766, 25.3852)
Luminance0.5248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC178 #7884CD
analogous
#CD9678 #CDC178 #AECD78
triadic
#CDC178 #78CDC1 #C178CD
tetradic
#CDC178 #78CD96 #7884CD #CD78AE
square
#CDC178 #78CD96 #7884CD #CD78AE
split-complementary
#CDC178 #78AECD #9678CD
monochromatic
#948737 #BCAC4B #CDC178 #DED6A5 #EEEAD1

Accessibility & contrast

On white

1.83
#CDC178 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.50
#CDC178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC178
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC178#FFFFFF#000000##000000
##CDC1781.001.8311.5011.50
#FFFFFF1.831.0021.0021.00
#00000011.5021.001.001.00
##00000011.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEBD72
Deuteranopia (green-blind)
#D1C27B
Tritanopia (blue-blind)
#D9B7AF
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cdc178;
/* rgb */ color: rgb(205, 193, 120);
/* oklch */ color: oklch(80.4% 0.095 100.1);
Tailwind
colors: {
  custom: {
    50: '#ddd3a0',
    500: '#cdc178',
    950: '#000000',
  },
}
SCSS
$custom: #cdc178;
$custom-light: #ddd3a0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc178",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 120
  },
  "hsl": {
    "h": 51.529,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.80448,
    "c": 0.09454,
    "h": 100.1
  },
  "luminance": 0.52475
}

Semantic roles & 50–950 ramp

primary
#CDC178
secondary
#4F5A9A
accent
#40B92C
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC178

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

Preview Lab → · Contrast checker → · Palette generator →

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