#AFA55D#AFA55D

#AFA55D is a light, moderate yellow. Relative luminance 0.368; OKLCH L 71.4% C 0.094 H 101.5°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#AFA55D
RGBrgb(175, 165, 93)
HSLhsl(53, 34%, 53%)
HSVhsv(53, 47%, 69%)
CMYKcmyk(0%, 5.7%, 46.9%, 31.4%)
CIE-LABlab(67.14, -6.54, 38.43)
CIE-LCHlch(67.14, 38.98, 99.66°)
OKLaboklab(71.45% -0.0187 0.0922)
OKLCHoklch(71.45% 0.094 101.5)
XYZxyz(33.1109, 36.8156, 15.7158)
Luminance0.3681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA55D #5D67AF
analogous
#AF7C5D #AFA55D #90AF5D
triadic
#AFA55D #5DAFA5 #A55DAF
tetradic
#AFA55D #5DAF7C #5D67AF #AF5D90
square
#AFA55D #5DAF7C #5D67AF #AF5D90
split-complementary
#AFA55D #5D90AF #7C5DAF
monochromatic
#615B30 #8A8244 #AFA55D #C3BC86 #D7D3AF

Accessibility & contrast

On white

2.51
#AFA55D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#AFA55D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA55D
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA55D#FFFFFF#000000##000000
##AFA55D1.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A157
Deuteranopia (green-blind)
#B4A560
Tritanopia (blue-blind)
#BA9C94
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa55d;
/* rgb */ color: rgb(175, 165, 93);
/* oklch */ color: oklch(71.4% 0.094 101.5);
Tailwind
colors: {
  custom: {
    50: '#c8bf8c',
    500: '#afa55d',
    950: '#000000',
  },
}
SCSS
$custom: #afa55d;
$custom-light: #c8bf8c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa55d",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 93
  },
  "hsl": {
    "h": 52.683,
    "s": 33.884,
    "l": 52.549
  },
  "oklch": {
    "l": 0.71445,
    "c": 0.09409,
    "h": 101.5
  },
  "luminance": 0.36815
}

Semantic roles & 50–950 ramp

primary
#AFA55D
secondary
#A2A6C6
accent
#6BCA5E
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA55D

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

Preview Lab → · Contrast checker → · Palette generator →

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