#CDAB42#CDAB42

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

Color values

HEX#CDAB42
RGBrgb(205, 171, 66)
HSLhsl(45, 58%, 53%)
HSVhsv(45, 68%, 80%)
CMYKcmyk(0%, 16.6%, 67.8%, 19.6%)
CIE-LABlab(71.21, 1.02, 56.63)
CIE-LCHlch(71.21, 56.64, 88.97°)
OKLaboklab(75.23% -0.0019 0.1276)
OKLCHoklch(75.23% 0.128 90.9)
XYZxyz(40.7252, 42.5007, 11.2116)
Luminance0.4250 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAB42 #4264CD
analogous
#CD6542 #CDAB42 #A9CD42
triadic
#CDAB42 #42CDAB #AB42CD
tetradic
#CDAB42 #42CD65 #4264CD #CD42A9
square
#CDAB42 #42CD65 #4264CD #CD42A9
split-complementary
#CDAB42 #42A9CD #6542CD
monochromatic
#76601F #A6882C #CDAB42 #DAC172 #E7D6A3

Accessibility & contrast

On white

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

On black

9.50
#CDAB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAB42
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAB42#FFFFFF#000000##000000
##CDAB421.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdab42;
/* rgb */ color: rgb(205, 171, 66);
/* oklch */ color: oklch(75.2% 0.128 90.9);
Tailwind
colors: {
  custom: {
    50: '#e0c37c',
    500: '#cdab42',
    950: '#000000',
  },
}
SCSS
$custom: #cdab42;
$custom-light: #e0c37c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdab42",
  "rgb": {
    "r": 205,
    "g": 171,
    "b": 66
  },
  "hsl": {
    "h": 45.324,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.7523,
    "c": 0.12762,
    "h": 90.9
  },
  "luminance": 0.42498
}

Semantic roles & 50–950 ramp

primary
#CDAB42
secondary
#97A6D3
accent
#6CE146
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CDAB42

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

Preview Lab → · Contrast checker → · Palette generator →

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