#CDB22D#CDB22D

#CDB22D is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.5% C 0.145 H 96.9°. Best body text is #000000 at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#CDB22D
RGBrgb(205, 178, 45)
HSLhsl(50, 64%, 49%)
HSVhsv(50, 78%, 80%)
CMYKcmyk(0%, 13.2%, 78%, 19.6%)
CIE-LABlab(72.90, -3.64, 66.22)
CIE-LCHlch(72.90, 66.32, 93.15°)
OKLaboklab(76.52% -0.0175 0.144)
OKLCHoklch(76.52% 0.145 96.9)
XYZxyz(41.5731, 45.0116, 8.9805)
Luminance0.4501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB22D #2D48CD
analogous
#CD622D #CDB22D #98CD2D
triadic
#CDB22D #2DCDB2 #B22DCD
tetradic
#CDB22D #2DCD62 #2D48CD #CD2D98
square
#CDB22D #2DCD62 #2D48CD #CD2D98
split-complementary
#CDB22D #2D98CD #622DCD
monochromatic
#695B17 #9B8622 #CDB22D #DBC65C #E6D78E

Accessibility & contrast

On white

2.10
#CDB22D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.00
#CDB22D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB22D
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB22D#FFFFFF#000000##000000
##CDB22D1.002.1010.0010.00
#FFFFFF2.101.0021.0021.00
#00000010.0021.001.001.00
##00000010.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE0C
Deuteranopia (green-blind)
#CCB736
Tritanopia (blue-blind)
#DEA499
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cdb22d;
/* rgb */ color: rgb(205, 178, 45);
/* oklch */ color: oklch(76.5% 0.145 96.9);
Tailwind
colors: {
  custom: {
    50: '#e1c871',
    500: '#cdb22d',
    950: '#000000',
  },
}
SCSS
$custom: #cdb22d;
$custom-light: #e1c871;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb22d",
  "rgb": {
    "r": 205,
    "g": 178,
    "b": 45
  },
  "hsl": {
    "h": 49.875,
    "s": 64,
    "l": 49.02
  },
  "oklch": {
    "l": 0.76518,
    "c": 0.14509,
    "h": 96.9
  },
  "luminance": 0.45009
}

Semantic roles & 50–950 ramp

primary
#CDB22D
secondary
#8592D1
accent
#5DE741
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161308
muted
#84827B

Preview Lab

Preview with #CDB22D

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

Preview Lab → · Contrast checker → · Palette generator →

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