#CDAF2D#CDAF2D

#CDAF2D is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.9% C 0.143 H 95.2°. Best body text is #000000 at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#CDAF2D
RGBrgb(205, 175, 45)
HSLhsl(49, 64%, 49%)
HSVhsv(49, 78%, 80%)
CMYKcmyk(0%, 14.6%, 78%, 19.6%)
CIE-LABlab(72.12, -2.07, 65.51)
CIE-LCHlch(72.12, 65.54, 91.81°)
OKLaboklab(75.9% -0.013 0.1425)
OKLCHoklch(75.9% 0.143 95.2)
XYZxyz(40.9827, 43.8309, 8.7837)
Luminance0.4383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAF2D #2D4BCD
analogous
#CD5F2D #CDAF2D #9BCD2D
triadic
#CDAF2D #2DCDAF #AF2DCD
tetradic
#CDAF2D #2DCD5F #2D4BCD #CD2D9B
square
#CDAF2D #2DCD5F #2D4BCD #CD2D9B
split-complementary
#CDAF2D #2D9BCD #5F2DCD
monochromatic
#695917 #9B8422 #CDAF2D #DBC35C #E6D68E

Accessibility & contrast

On white

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

On black

9.77
#CDAF2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAF2D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAF2D#FFFFFF#000000##000000
##CDAF2D1.002.159.779.77
#FFFFFF2.151.0021.0021.00
#0000009.7721.001.001.00
##0000009.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdaf2d;
/* rgb */ color: rgb(205, 175, 45);
/* oklch */ color: oklch(75.9% 0.143 95.2);
Tailwind
colors: {
  custom: {
    50: '#e1c671',
    500: '#cdaf2d',
    950: '#000000',
  },
}
SCSS
$custom: #cdaf2d;
$custom-light: #e1c671;
$custom-dark: #000000;
JSON
{
  "hex": "#cdaf2d",
  "rgb": {
    "r": 205,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 48.75,
    "s": 64,
    "l": 49.02
  },
  "oklch": {
    "l": 0.75898,
    "c": 0.14309,
    "h": 95.2
  },
  "luminance": 0.43829
}

Semantic roles & 50–950 ramp

primary
#CDAF2D
secondary
#8593D1
accent
#60E741
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161208
muted
#84817B

Preview Lab

Preview with #CDAF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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