#CDC156#CDC156

#CDC156 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.129 H 102.9°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#CDC156
RGBrgb(205, 193, 86)
HSLhsl(54, 54%, 57%)
HSVhsv(54, 58%, 80%)
CMYKcmyk(0%, 5.9%, 58%, 19.6%)
CIE-LABlab(77.16, -9.18, 54.25)
CIE-LCHlch(77.16, 55.02, 99.60°)
OKLaboklab(79.99% -0.0288 0.1254)
OKLCHoklch(79.99% 0.129 102.9)
XYZxyz(45.9281, 51.7926, 16.3800)
Luminance0.5179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC156 #5662CD
analogous
#CD8656 #CDC156 #9DCD56
triadic
#CDC156 #56CDC1 #C156CD
tetradic
#CDC156 #56CD86 #5662CD #CD569D
square
#CDC156 #56CD86 #5662CD #CD569D
split-complementary
#CDC156 #569DCD #8656CD
monochromatic
#827926 #B1A534 #CDC156 #DBD285 #E9E4B4

Accessibility & contrast

On white

1.85
#CDC156 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.36
#CDC156 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC156
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC156#FFFFFF#000000##000000
##CDC1561.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB4B
Deuteranopia (green-blind)
#D5C15C
Tritanopia (blue-blind)
#DBB5AA
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc156;
/* rgb */ color: rgb(205, 193, 86);
/* oklch */ color: oklch(80.0% 0.129 102.9);
Tailwind
colors: {
  custom: {
    50: '#dfd389',
    500: '#cdc156',
    950: '#000000',
  },
}
SCSS
$custom: #cdc156;
$custom-light: #dfd389;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc156",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 86
  },
  "hsl": {
    "h": 53.95,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.79991,
    "c": 0.1287,
    "h": 102.9
  },
  "luminance": 0.51791
}

Semantic roles & 50–950 ramp

primary
#CDC156
secondary
#3E4589
accent
#59DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC156

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

Preview Lab → · Contrast checker → · Palette generator →

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