#CDAF40#CDAF40

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

Color values

HEX#CDAF40
RGBrgb(205, 175, 64)
HSLhsl(47, 59%, 53%)
HSVhsv(47, 69%, 80%)
CMYKcmyk(0%, 14.6%, 68.8%, 19.6%)
CIE-LABlab(72.24, -1.21, 58.53)
CIE-LCHlch(72.24, 58.54, 91.18°)
OKLaboklab(76.03% -0.0085 0.1313)
OKLCHoklch(76.03% 0.132 93.7)
XYZxyz(41.4343, 44.0115, 11.1621)
Luminance0.4401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAF40 #405ECD
analogous
#CD6840 #CDAF40 #A4CD40
triadic
#CDAF40 #40CDAF #AF40CD
tetradic
#CDAF40 #40CD68 #405ECD #CD40A4
square
#CDAF40 #40CD68 #405ECD #CD40A4
split-complementary
#CDAF40 #40A4CD #6840CD
monochromatic
#74621E #A58B2B #CDAF40 #DAC371 #E6D8A1

Accessibility & contrast

On white

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

On black

9.80
#CDAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAF40
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAF40#FFFFFF#000000##000000
##CDAF401.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC31
Deuteranopia (green-blind)
#C9B546
Tritanopia (blue-blind)
#DDA198
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cdaf40;
/* rgb */ color: rgb(205, 175, 64);
/* oklch */ color: oklch(76.0% 0.132 93.7);
Tailwind
colors: {
  custom: {
    50: '#e0c67b',
    500: '#cdaf40',
    950: '#000000',
  },
}
SCSS
$custom: #cdaf40;
$custom-light: #e0c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdaf40",
  "rgb": {
    "r": 205,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 47.234,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.76032,
    "c": 0.13157,
    "h": 93.7
  },
  "luminance": 0.44009
}

Semantic roles & 50–950 ramp

primary
#CDAF40
secondary
#96A3D3
accent
#67E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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