#CDAB40#CDAB40

#CDAB40 is a light, vivid yellow. Relative luminance 0.425; OKLCH L 75.2% C 0.129 H 91.1°. Best body text is #000000 at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#CDAB40
RGBrgb(205, 171, 64)
HSLhsl(46, 59%, 53%)
HSVhsv(46, 69%, 80%)
CMYKcmyk(0%, 16.6%, 68.8%, 19.6%)
CIE-LABlab(71.20, 0.91, 57.46)
CIE-LCHlch(71.20, 57.47, 89.09°)
OKLaboklab(75.21% -0.0025 0.129)
OKLCHoklch(75.21% 0.129 91.1)
XYZxyz(40.6673, 42.4775, 10.9065)
Luminance0.4248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAB40 #4062CD
analogous
#CD6540 #CDAB40 #A8CD40
triadic
#CDAB40 #40CDAB #AB40CD
tetradic
#CDAB40 #40CD65 #4062CD #CD40A8
square
#CDAB40 #40CD65 #4062CD #CD40A8
split-complementary
#CDAB40 #40A8CD #6540CD
monochromatic
#74601E #A5872B #CDAB40 #DAC071 #E6D6A1

Accessibility & contrast

On white

2.21
#CDAB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.49
#CDAB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAB40
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAB40#FFFFFF#000000##000000
##CDAB401.002.219.499.49
#FFFFFF2.211.0021.0021.00
#0000009.4921.001.001.00
##0000009.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA932
Deuteranopia (green-blind)
#C6B245
Tritanopia (blue-blind)
#DD9D95
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cdab40;
/* rgb */ color: rgb(205, 171, 64);
/* oklch */ color: oklch(75.2% 0.129 91.1);
Tailwind
colors: {
  custom: {
    50: '#e0c37a',
    500: '#cdab40',
    950: '#000000',
  },
}
SCSS
$custom: #cdab40;
$custom-light: #e0c37a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdab40",
  "rgb": {
    "r": 205,
    "g": 171,
    "b": 64
  },
  "hsl": {
    "h": 45.532,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.75213,
    "c": 0.12905,
    "h": 91.1
  },
  "luminance": 0.42475
}

Semantic roles & 50–950 ramp

primary
#CDAB40
secondary
#96A5D3
accent
#6CE246
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CDAB40

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

Preview Lab → · Contrast checker → · Palette generator →

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