#AFA55B#AFA55B

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

Color values

HEX#AFA55B
RGBrgb(175, 165, 91)
HSLhsl(53, 34%, 52%)
HSVhsv(53, 48%, 69%)
CMYKcmyk(0%, 5.7%, 48%, 31.4%)
CIE-LABlab(67.11, -6.74, 39.42)
CIE-LCHlch(67.11, 39.99, 99.70°)
OKLaboklab(71.41% -0.0194 0.0943)
OKLCHoklch(71.41% 0.096 101.7)
XYZxyz(33.0235, 36.7806, 15.2553)
Luminance0.3678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA55B #5B65AF
analogous
#AF7B5B #AFA55B #8FAF5B
triadic
#AFA55B #5BAFA5 #A55BAF
tetradic
#AFA55B #5BAF7B #5B65AF #AF5B8F
square
#AFA55B #5BAF7B #5B65AF #AF5B8F
split-complementary
#AFA55B #5B8FAF #7B5BAF
monochromatic
#615B2F #8A8143 #AFA55B #C3BC84 #D7D2AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA55B#FFFFFF#000000##000000
##AFA55B1.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)
#B1A155
Deuteranopia (green-blind)
#B4A55E
Tritanopia (blue-blind)
#BA9C94
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa55b;
/* rgb */ color: rgb(175, 165, 91);
/* oklch */ color: oklch(71.4% 0.096 101.7);
Tailwind
colors: {
  custom: {
    50: '#c8bf8b',
    500: '#afa55b',
    950: '#000000',
  },
}
SCSS
$custom: #afa55b;
$custom-light: #c8bf8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa55b",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 91
  },
  "hsl": {
    "h": 52.857,
    "s": 34.426,
    "l": 52.157
  },
  "oklch": {
    "l": 0.71415,
    "c": 0.09625,
    "h": 101.7
  },
  "luminance": 0.3678
}

Semantic roles & 50–950 ramp

primary
#AFA55B
secondary
#A1A5C5
accent
#6ACB5D
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA55B

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

Preview Lab → · Contrast checker → · Palette generator →

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