#CDAC40#CDAC40

#CDAC40 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.4% C 0.130 H 91.8°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#CDAC40
RGBrgb(205, 172, 64)
HSLhsl(46, 59%, 53%)
HSVhsv(46, 69%, 80%)
CMYKcmyk(0%, 16.1%, 68.8%, 19.6%)
CIE-LABlab(71.46, 0.38, 57.73)
CIE-LCHlch(71.46, 57.73, 89.62°)
OKLaboklab(75.42% -0.004 0.1296)
OKLCHoklch(75.42% 0.13 91.8)
XYZxyz(40.8569, 42.8567, 10.9697)
Luminance0.4285 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAC40 #4061CD
analogous
#CD6540 #CDAC40 #A8CD40
triadic
#CDAC40 #40CDAC #AC40CD
tetradic
#CDAC40 #40CD65 #4061CD #CD40A8
square
#CDAC40 #40CD65 #4061CD #CD40A8
split-complementary
#CDAC40 #40A8CD #6540CD
monochromatic
#74601E #A5882B #CDAC40 #DAC171 #E6D6A1

Accessibility & contrast

On white

2.19
#CDAC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.57
#CDAC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAC40
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAC40#FFFFFF#000000##000000
##CDAC401.002.199.579.57
#FFFFFF2.191.0021.0021.00
#0000009.5721.001.001.00
##0000009.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAA32
Deuteranopia (green-blind)
#C6B345
Tritanopia (blue-blind)
#DD9E96
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cdac40;
/* rgb */ color: rgb(205, 172, 64);
/* oklch */ color: oklch(75.4% 0.130 91.8);
Tailwind
colors: {
  custom: {
    50: '#e0c47b',
    500: '#cdac40',
    950: '#000000',
  },
}
SCSS
$custom: #cdac40;
$custom-light: #e0c47b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdac40",
  "rgb": {
    "r": 205,
    "g": 172,
    "b": 64
  },
  "hsl": {
    "h": 45.957,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.75417,
    "c": 0.12965,
    "h": 91.8
  },
  "luminance": 0.42854
}

Semantic roles & 50–950 ramp

primary
#CDAC40
secondary
#96A4D3
accent
#6BE246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CDAC40

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

Preview Lab → · Contrast checker → · Palette generator →

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