#AFA85B#AFA85B

#AFA85B is a light, moderate yellow. Relative luminance 0.379; OKLCH L 72.1% C 0.099 H 104.0°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#AFA85B
RGBrgb(175, 168, 91)
HSLhsl(55, 34%, 52%)
HSVhsv(55, 48%, 69%)
CMYKcmyk(0%, 4%, 48%, 31.4%)
CIE-LABlab(67.93, -8.32, 40.42)
CIE-LCHlch(67.93, 41.26, 101.64°)
OKLaboklab(72.06% -0.024 0.0965)
OKLCHoklch(72.06% 0.099 104)
XYZxyz(33.5710, 37.8755, 15.4378)
Luminance0.3787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA85B #5B62AF
analogous
#AF7E5B #AFA85B #8CAF5B
triadic
#AFA85B #5BAFA8 #A85BAF
tetradic
#AFA85B #5BAF7E #5B62AF #AF5B8C
square
#AFA85B #5BAF7E #5B62AF #AF5B8C
split-complementary
#AFA85B #5B8CAF #7E5BAF
monochromatic
#615C2F #8A8443 #AFA85B #C3BE84 #D7D4AD

Accessibility & contrast

On white

2.45
#AFA85B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#AFA85B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA85B
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA85B#FFFFFF#000000##000000
##AFA85B1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A354
Deuteranopia (green-blind)
#B6A75E
Tritanopia (blue-blind)
#BA9F96
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa85b;
/* rgb */ color: rgb(175, 168, 91);
/* oklch */ color: oklch(72.1% 0.099 104.0);
Tailwind
colors: {
  custom: {
    50: '#c8c18b',
    500: '#afa85b',
    950: '#000000',
  },
}
SCSS
$custom: #afa85b;
$custom-light: #c8c18b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa85b",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 91
  },
  "hsl": {
    "h": 55,
    "s": 34.426,
    "l": 52.157
  },
  "oklch": {
    "l": 0.72063,
    "c": 0.09941,
    "h": 104
  },
  "luminance": 0.37875
}

Semantic roles & 50–950 ramp

primary
#AFA85B
secondary
#A1A4C5
accent
#66CB5D
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA85B

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

Preview Lab → · Contrast checker → · Palette generator →

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