#CDAF42#CDAF42

#CDAF42 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 76.0% C 0.130 H 93.5°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#CDAF42
RGBrgb(205, 175, 66)
HSLhsl(47, 58%, 53%)
HSVhsv(47, 68%, 80%)
CMYKcmyk(0%, 14.6%, 67.8%, 19.6%)
CIE-LABlab(72.25, -1.10, 57.71)
CIE-LCHlch(72.25, 57.72, 91.09°)
OKLaboklab(76.05% -0.008 0.1299)
OKLCHoklch(76.05% 0.13 93.5)
XYZxyz(41.4923, 44.0347, 11.4673)
Luminance0.4403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAF42 #4260CD
analogous
#CD6942 #CDAF42 #A6CD42
triadic
#CDAF42 #42CDAF #AF42CD
tetradic
#CDAF42 #42CD69 #4260CD #CD42A6
square
#CDAF42 #42CD69 #4260CD #CD42A6
split-complementary
#CDAF42 #42A6CD #6942CD
monochromatic
#76631F #A68C2C #CDAF42 #DAC372 #E7D8A3

Accessibility & contrast

On white

2.14
#CDAF42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.81
#CDAF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAF42
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAF42#FFFFFF#000000##000000
##CDAF421.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC34
Deuteranopia (green-blind)
#C8B548
Tritanopia (blue-blind)
#DDA298
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cdaf42;
/* rgb */ color: rgb(205, 175, 66);
/* oklch */ color: oklch(76.0% 0.130 93.5);
Tailwind
colors: {
  custom: {
    50: '#e0c67c',
    500: '#cdaf42',
    950: '#000000',
  },
}
SCSS
$custom: #cdaf42;
$custom-light: #e0c67c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdaf42",
  "rgb": {
    "r": 205,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 47.05,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.76049,
    "c": 0.13015,
    "h": 93.5
  },
  "luminance": 0.44032
}

Semantic roles & 50–950 ramp

primary
#CDAF42
secondary
#97A4D3
accent
#68E146
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDAF42

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

Preview Lab → · Contrast checker → · Palette generator →

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