#CDB940#CDB940

#CDB940 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 78.1% C 0.139 H 99.7°. Best body text is #000000 at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#CDB940
RGBrgb(205, 185, 64)
HSLhsl(51, 59%, 53%)
HSVhsv(51, 69%, 80%)
CMYKcmyk(0%, 9.8%, 68.8%, 19.6%)
CIE-LABlab(74.86, -6.44, 61.20)
CIE-LCHlch(74.86, 61.54, 96.01°)
OKLaboklab(78.11% -0.0235 0.1369)
OKLCHoklch(78.11% 0.139 99.7)
XYZxyz(43.4532, 48.0492, 11.8351)
Luminance0.4805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB940 #4054CD
analogous
#CD7240 #CDB940 #9BCD40
triadic
#CDB940 #40CDB9 #B940CD
tetradic
#CDB940 #40CD72 #4054CD #CD409B
square
#CDB940 #40CD72 #4054CD #CD409B
split-complementary
#CDB940 #409BCD #7240CD
monochromatic
#74681E #A5932B #CDB940 #DACB71 #E6DDA1

Accessibility & contrast

On white

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

On black

10.61
#CDB940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB940
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB940#FFFFFF#000000##000000
##CDB9401.001.9810.6110.61
#FFFFFF1.981.0021.0021.00
#00000010.6121.001.001.00
##00000010.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB42F
Deuteranopia (green-blind)
#D0BB47
Tritanopia (blue-blind)
#DDACA0
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cdb940;
/* rgb */ color: rgb(205, 185, 64);
/* oklch */ color: oklch(78.1% 0.139 99.7);
Tailwind
colors: {
  custom: {
    50: '#e0cd7c',
    500: '#cdb940',
    950: '#000000',
  },
}
SCSS
$custom: #cdb940;
$custom-light: #e0cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb940",
  "rgb": {
    "r": 205,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 51.489,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.78106,
    "c": 0.13894,
    "h": 99.7
  },
  "luminance": 0.48047
}

Semantic roles & 50–950 ramp

primary
#CDB940
secondary
#969FD3
accent
#5CE246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDB940

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

Preview Lab → · Contrast checker → · Palette generator →

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