#CDC45B#CDC45B

#CDC45B is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.7% C 0.127 H 104.4°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#CDC45B
RGBrgb(205, 196, 91)
HSLhsl(55, 53%, 58%)
HSVhsv(55, 56%, 80%)
CMYKcmyk(0%, 4.4%, 55.6%, 19.6%)
CIE-LABlab(78.00, -10.34, 52.92)
CIE-LCHlch(78.00, 53.92, 101.05°)
OKLaboklab(80.68% -0.0316 0.1232)
OKLCHoklch(80.68% 0.127 104.4)
XYZxyz(46.8066, 53.2159, 17.7016)
Luminance0.5321 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC45B #5B64CD
analogous
#CD8B5B #CDC45B #9DCD5B
triadic
#CDC45B #5BCDC4 #C45BCD
tetradic
#CDC45B #5BCD8B #5B64CD #CD5B9D
square
#CDC45B #5BCD8B #5B64CD #CD5B9D
split-complementary
#CDC45B #5B9DCD #8B5BCD
monochromatic
#857E29 #B4AA37 #CDC45B #DBD58A #EAE6B9

Accessibility & contrast

On white

1.80
#CDC45B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.64
#CDC45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC45B
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC45B#FFFFFF#000000##000000
##CDC45B1.001.8011.6411.64
#FFFFFF1.801.0021.0021.00
#00000011.6421.001.001.00
##00000011.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BE50
Deuteranopia (green-blind)
#D6C360
Tritanopia (blue-blind)
#DBB8AD
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc45b;
/* rgb */ color: rgb(205, 196, 91);
/* oklch */ color: oklch(80.7% 0.127 104.4);
Tailwind
colors: {
  custom: {
    50: '#dfd58d',
    500: '#cdc45b',
    950: '#000000',
  },
}
SCSS
$custom: #cdc45b;
$custom-light: #dfd58d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc45b",
  "rgb": {
    "r": 205,
    "g": 196,
    "b": 91
  },
  "hsl": {
    "h": 55.263,
    "s": 53.271,
    "l": 58.039
  },
  "oklch": {
    "l": 0.80679,
    "c": 0.12715,
    "h": 104.4
  },
  "luminance": 0.53214
}

Semantic roles & 50–950 ramp

primary
#CDC45B
secondary
#40468C
accent
#57DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC45B

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

Preview Lab → · Contrast checker → · Palette generator →

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