#CDB945#CDB945

#CDB945 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 78.1% C 0.135 H 99.4°. Best body text is #000000 at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#CDB945
RGBrgb(205, 185, 69)
HSLhsl(51, 58%, 54%)
HSVhsv(51, 66%, 80%)
CMYKcmyk(0%, 9.8%, 66.3%, 19.6%)
CIE-LABlab(74.89, -6.16, 59.20)
CIE-LCHlch(74.89, 59.52, 95.94°)
OKLaboklab(78.15% -0.0221 0.1336)
OKLCHoklch(78.15% 0.135 99.4)
XYZxyz(43.6019, 48.1087, 12.6183)
Luminance0.4811 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB945 #4559CD
analogous
#CD7545 #CDB945 #9DCD45
triadic
#CDB945 #45CDB9 #B945CD
tetradic
#CDB945 #45CD75 #4559CD #CD459D
square
#CDB945 #45CD75 #4559CD #CD459D
split-complementary
#CDB945 #459DCD #7545CD
monochromatic
#776B20 #A8962D #CDB945 #DACB75 #E7DDA5

Accessibility & contrast

On white

1.98
#CDB945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.62
#CDB945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB945
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB945#FFFFFF#000000##000000
##CDB9451.001.9810.6210.62
#FFFFFF1.981.0021.0021.00
#00000010.6221.001.001.00
##00000010.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB436
Deuteranopia (green-blind)
#D0BC4B
Tritanopia (blue-blind)
#DCACA1
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cdb945;
/* rgb */ color: rgb(205, 185, 69);
/* oklch */ color: oklch(78.1% 0.135 99.4);
Tailwind
colors: {
  custom: {
    50: '#e0cd7e',
    500: '#cdb945',
    950: '#000000',
  },
}
SCSS
$custom: #cdb945;
$custom-light: #e0cd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb945",
  "rgb": {
    "r": 205,
    "g": 185,
    "b": 69
  },
  "hsl": {
    "h": 51.176,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.78148,
    "c": 0.13537,
    "h": 99.4
  },
  "luminance": 0.48107
}

Semantic roles & 50–950 ramp

primary
#CDB945
secondary
#9AA2D4
accent
#5EE147
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDB945

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

Preview Lab → · Contrast checker → · Palette generator →

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