#CDB216#CDB216

#CDB216 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.4% C 0.154 H 97.8°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#CDB216
RGBrgb(205, 178, 22)
HSLhsl(51, 81%, 45%)
HSVhsv(51, 89%, 80%)
CMYKcmyk(0%, 13.2%, 89.3%, 19.6%)
CIE-LABlab(72.81, -4.27, 72.07)
CIE-LCHlch(72.81, 72.19, 93.39°)
OKLaboklab(76.42% -0.0209 0.1525)
OKLCHoklch(76.42% 0.154 97.8)
XYZxyz(41.2444, 44.8802, 7.2492)
Luminance0.4488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB216 #1631CD
analogous
#CD5716 #CDB216 #8CCD16
triadic
#CDB216 #16CDB2 #B216CD
tetradic
#CDB216 #16CD57 #1631CD #CD168C
square
#CDB216 #16CD57 #1631CD #CD168C
split-complementary
#CDB216 #168CCD #5716CD
monochromatic
#5E520A #968210 #CDB216 #EACF37 #EFDC6E

Accessibility & contrast

On white

2.11
#CDB216 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#CDB216 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB216
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB216#FFFFFF#000000##000000
##CDB2161.002.119.989.98
#FFFFFF2.111.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#CCB726
Tritanopia (blue-blind)
#DEA398
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cdb216;
/* rgb */ color: rgb(205, 178, 22);
/* oklch */ color: oklch(76.4% 0.154 97.8);
Tailwind
colors: {
  custom: {
    50: '#e1c869',
    500: '#cdb216',
    950: '#000000',
  },
}
SCSS
$custom: #cdb216;
$custom-light: #e1c869;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb216",
  "rgb": {
    "r": 205,
    "g": 178,
    "b": 22
  },
  "hsl": {
    "h": 51.148,
    "s": 80.617,
    "l": 44.51
  },
  "oklch": {
    "l": 0.76422,
    "c": 0.15391,
    "h": 97.8
  },
  "luminance": 0.44878
}

Semantic roles & 50–950 ramp

primary
#CDB216
secondary
#6979D5
accent
#4EF731
background
#FEFCF6
surface
#FDF8EC
border
#D5D1C7
text
#161307
muted
#84827A

Preview Lab

Preview with #CDB216

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

Preview Lab → · Contrast checker → · Palette generator →

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