#CDAC42#CDAC42

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

Color values

HEX#CDAC42
RGBrgb(205, 172, 66)
HSLhsl(46, 58%, 53%)
HSVhsv(46, 68%, 80%)
CMYKcmyk(0%, 16.1%, 67.8%, 19.6%)
CIE-LABlab(71.47, 0.49, 56.90)
CIE-LCHlch(71.47, 56.90, 89.51°)
OKLaboklab(75.43% -0.0034 0.1282)
OKLCHoklch(75.43% 0.128 91.5)
XYZxyz(40.9148, 42.8799, 11.2748)
Luminance0.4288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAC42 #4263CD
analogous
#CD6642 #CDAC42 #A9CD42
triadic
#CDAC42 #42CDAC #AC42CD
tetradic
#CDAC42 #42CD66 #4263CD #CD42A9
square
#CDAC42 #42CD66 #4263CD #CD42A9
split-complementary
#CDAC42 #42A9CD #6642CD
monochromatic
#76611F #A6892C #CDAC42 #DAC172 #E7D7A3

Accessibility & contrast

On white

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

On black

9.58
#CDAC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAC42
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAC42#FFFFFF#000000##000000
##CDAC421.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdac42;
/* rgb */ color: rgb(205, 172, 66);
/* oklch */ color: oklch(75.4% 0.128 91.5);
Tailwind
colors: {
  custom: {
    50: '#e0c47c',
    500: '#cdac42',
    950: '#000000',
  },
}
SCSS
$custom: #cdac42;
$custom-light: #e0c47c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdac42",
  "rgb": {
    "r": 205,
    "g": 172,
    "b": 66
  },
  "hsl": {
    "h": 45.755,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.75434,
    "c": 0.12823,
    "h": 91.5
  },
  "luminance": 0.42878
}

Semantic roles & 50–950 ramp

primary
#CDAC42
secondary
#97A6D3
accent
#6BE146
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CDAC42

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

Preview Lab → · Contrast checker → · Palette generator →

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