#CDAF36#CDAF36

#CDAF36 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 76.0% C 0.138 H 94.6°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#CDAF36
RGBrgb(205, 175, 54)
HSLhsl(48, 60%, 51%)
HSVhsv(48, 74%, 80%)
CMYKcmyk(0%, 14.6%, 73.7%, 19.6%)
CIE-LABlab(72.17, -1.70, 62.40)
CIE-LCHlch(72.17, 62.42, 91.56°)
OKLaboklab(75.96% -0.0111 0.1377)
OKLCHoklch(75.96% 0.138 94.6)
XYZxyz(41.1749, 43.9077, 9.7956)
Luminance0.4390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAF36 #3654CD
analogous
#CD6336 #CDAF36 #A0CD36
triadic
#CDAF36 #36CDAF #AF36CD
tetradic
#CDAF36 #36CD63 #3654CD #CD36A0
square
#CDAF36 #36CD63 #3654CD #CD36A0
split-complementary
#CDAF36 #36A0CD #6336CD
monochromatic
#6D5D1B #9E8727 #CDAF36 #D9C367 #E5D698

Accessibility & contrast

On white

2.15
#CDAF36 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#CDAF36 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAF36
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAF36#FFFFFF#000000##000000
##CDAF361.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC22
Deuteranopia (green-blind)
#C9B53D
Tritanopia (blue-blind)
#DEA197
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cdaf36;
/* rgb */ color: rgb(205, 175, 54);
/* oklch */ color: oklch(76.0% 0.138 94.6);
Tailwind
colors: {
  custom: {
    50: '#e0c675',
    500: '#cdaf36',
    950: '#000000',
  },
}
SCSS
$custom: #cdaf36;
$custom-light: #e0c675;
$custom-dark: #000000;
JSON
{
  "hex": "#cdaf36",
  "rgb": {
    "r": 205,
    "g": 175,
    "b": 54
  },
  "hsl": {
    "h": 48.079,
    "s": 60.159,
    "l": 50.784
  },
  "oklch": {
    "l": 0.75955,
    "c": 0.1381,
    "h": 94.6
  },
  "luminance": 0.43905
}

Semantic roles & 50–950 ramp

primary
#CDAF36
secondary
#8E9BD1
accent
#64E344
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CDAF36

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

Preview Lab → · Contrast checker → · Palette generator →

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