#CDB45B#CDB45B

#CDB45B is a light, moderate yellow. Relative luminance 0.464; OKLCH L 77.3% C 0.113 H 93.9°. Best body text is #000000 at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#CDB45B
RGBrgb(205, 180, 91)
HSLhsl(47, 53%, 58%)
HSVhsv(47, 56%, 80%)
CMYKcmyk(0%, 12.2%, 55.6%, 19.6%)
CIE-LABlab(73.79, -2.04, 48.05)
CIE-LCHlch(73.79, 48.09, 92.43°)
OKLaboklab(77.34% -0.0077 0.1127)
OKLCHoklch(77.34% 0.113 93.9)
XYZxyz(43.3881, 46.3790, 16.5621)
Luminance0.4638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB45B #5B74CD
analogous
#CD7B5B #CDB45B #ADCD5B
triadic
#CDB45B #5BCDB4 #B45BCD
tetradic
#CDB45B #5BCD7B #5B74CD #CD5BAD
square
#CDB45B #5BCD7B #5B74CD #CD5BAD
split-complementary
#CDB45B #5BADCD #7B5BCD
monochromatic
#857129 #B49937 #CDB45B #DBC98A #EADFB9

Accessibility & contrast

On white

2.04
#CDB45B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.28
#CDB45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB45B
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB45B#FFFFFF#000000##000000
##CDB45B1.002.0410.2810.28
#FFFFFF2.041.0021.0021.00
#00000010.2821.001.001.00
##00000010.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B153
Deuteranopia (green-blind)
#CAB95F
Tritanopia (blue-blind)
#DCA8A0
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cdb45b;
/* rgb */ color: rgb(205, 180, 91);
/* oklch */ color: oklch(77.3% 0.113 93.9);
Tailwind
colors: {
  custom: {
    50: '#dfca8c',
    500: '#cdb45b',
    950: '#000000',
  },
}
SCSS
$custom: #cdb45b;
$custom-light: #dfca8c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb45b",
  "rgb": {
    "r": 205,
    "g": 180,
    "b": 91
  },
  "hsl": {
    "h": 46.842,
    "s": 53.271,
    "l": 58.039
  },
  "oklch": {
    "l": 0.77341,
    "c": 0.11292,
    "h": 93.9
  },
  "luminance": 0.46377
}

Semantic roles & 50–950 ramp

primary
#CDB45B
secondary
#ABB5D9
accent
#6BDD4B
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#15130C
muted
#84827D

Preview Lab

Preview with #CDB45B

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

Preview Lab → · Contrast checker → · Palette generator →

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