#CDB540#CDB540

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

Color values

HEX#CDB540
RGBrgb(205, 181, 64)
HSLhsl(50, 59%, 53%)
HSVhsv(50, 69%, 80%)
CMYKcmyk(0%, 11.7%, 68.8%, 19.6%)
CIE-LABlab(73.80, -4.36, 60.13)
CIE-LCHlch(73.80, 60.29, 94.15°)
OKLaboklab(77.27% -0.0176 0.1347)
OKLCHoklch(77.27% 0.136 97.4)
XYZxyz(42.6281, 46.3992, 11.5601)
Luminance0.4640 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB540 #4058CD
analogous
#CD6E40 #CDB540 #9FCD40
triadic
#CDB540 #40CDB5 #B540CD
tetradic
#CDB540 #40CD6E #4058CD #CD409F
square
#CDB540 #40CD6E #4058CD #CD409F
split-complementary
#CDB540 #409FCD #6E40CD
monochromatic
#74661E #A5902B #CDB540 #DAC871 #E6DBA1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDB540#FFFFFF#000000##000000
##CDB5401.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)
#C7B130
Deuteranopia (green-blind)
#CDB947
Tritanopia (blue-blind)
#DDA89D
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cdb540;
/* rgb */ color: rgb(205, 181, 64);
/* oklch */ color: oklch(77.3% 0.136 97.4);
Tailwind
colors: {
  custom: {
    50: '#e0ca7b',
    500: '#cdb540',
    950: '#000000',
  },
}
SCSS
$custom: #cdb540;
$custom-light: #e0ca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb540",
  "rgb": {
    "r": 205,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 49.787,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.77272,
    "c": 0.13582,
    "h": 97.4
  },
  "luminance": 0.46397
}

Semantic roles & 50–950 ramp

primary
#CDB540
secondary
#96A0D3
accent
#61E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDB540

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

Preview Lab → · Contrast checker → · Palette generator →

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