#AFA45D#AFA45D

#AFA45D is a light, moderate yellow. Relative luminance 0.365; OKLCH L 71.2% C 0.093 H 100.6°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#AFA45D
RGBrgb(175, 164, 93)
HSLhsl(52, 34%, 53%)
HSVhsv(52, 47%, 69%)
CMYKcmyk(0%, 6.3%, 46.9%, 31.4%)
CIE-LABlab(66.87, -6.01, 38.10)
CIE-LCHlch(66.87, 38.57, 98.96°)
OKLaboklab(71.23% -0.0171 0.0915)
OKLCHoklch(71.23% 0.093 100.6)
XYZxyz(32.9313, 36.4563, 15.6559)
Luminance0.3645 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA45D #5D68AF
analogous
#AF7B5D #AFA45D #91AF5D
triadic
#AFA45D #5DAFA4 #A45DAF
tetradic
#AFA45D #5DAF7B #5D68AF #AF5D91
square
#AFA45D #5DAF7B #5D68AF #AF5D91
split-complementary
#AFA45D #5D91AF #7B5DAF
monochromatic
#615B30 #8A8144 #AFA45D #C3BB86 #D7D2AF

Accessibility & contrast

On white

2.53
#AFA45D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#AFA45D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA45D
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA45D#FFFFFF#000000##000000
##AFA45D1.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A057
Deuteranopia (green-blind)
#B3A560
Tritanopia (blue-blind)
#BA9B93
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa45d;
/* rgb */ color: rgb(175, 164, 93);
/* oklch */ color: oklch(71.2% 0.093 100.6);
Tailwind
colors: {
  custom: {
    50: '#c8be8c',
    500: '#afa45d',
    950: '#000000',
  },
}
SCSS
$custom: #afa45d;
$custom-light: #c8be8c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa45d",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 93
  },
  "hsl": {
    "h": 51.951,
    "s": 33.884,
    "l": 52.549
  },
  "oklch": {
    "l": 0.7123,
    "c": 0.09305,
    "h": 100.6
  },
  "luminance": 0.36455
}

Semantic roles & 50–950 ramp

primary
#AFA45D
secondary
#A2A7C6
accent
#6CCA5E
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA45D

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

Preview Lab → · Contrast checker → · Palette generator →

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