#CDAF39#CDAF39

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

Color values

HEX#CDAF39
RGBrgb(205, 175, 57)
HSLhsl(48, 60%, 51%)
HSVhsv(48, 72%, 80%)
CMYKcmyk(0%, 14.6%, 72.2%, 19.6%)
CIE-LABlab(72.19, -1.56, 61.28)
CIE-LCHlch(72.19, 61.30, 91.46°)
OKLaboklab(75.98% -0.0104 0.1359)
OKLCHoklch(75.98% 0.136 94.4)
XYZxyz(41.2475, 43.9368, 10.1782)
Luminance0.4393 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAF39 #3957CD
analogous
#CD6539 #CDAF39 #A1CD39
triadic
#CDAF39 #39CDAF #AF39CD
tetradic
#CDAF39 #39CD65 #3957CD #CD39A1
square
#CDAF39 #39CD65 #3957CD #CD39A1
split-complementary
#CDAF39 #39A1CD #6539CD
monochromatic
#6F5F1C #A08828 #CDAF39 #D9C36A #E6D69B

Accessibility & contrast

On white

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

On black

9.79
#CDAF39 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAF39
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAF39#FFFFFF#000000##000000
##CDAF391.002.159.799.79
#FFFFFF2.151.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC27
Deuteranopia (green-blind)
#C9B540
Tritanopia (blue-blind)
#DDA197
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cdaf39;
/* rgb */ color: rgb(205, 175, 57);
/* oklch */ color: oklch(76.0% 0.136 94.4);
Tailwind
colors: {
  custom: {
    50: '#e0c677',
    500: '#cdaf39',
    950: '#000000',
  },
}
SCSS
$custom: #cdaf39;
$custom-light: #e0c677;
$custom-dark: #000000;
JSON
{
  "hex": "#cdaf39",
  "rgb": {
    "r": 205,
    "g": 175,
    "b": 57
  },
  "hsl": {
    "h": 47.838,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.75976,
    "c": 0.13624,
    "h": 94.4
  },
  "luminance": 0.43934
}

Semantic roles & 50–950 ramp

primary
#CDAF39
secondary
#909ED2
accent
#65E345
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CDAF39

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

Preview Lab → · Contrast checker → · Palette generator →

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