#AFA85A#AFA85A

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

Color values

HEX#AFA85A
RGBrgb(175, 168, 90)
HSLhsl(55, 35%, 52%)
HSVhsv(55, 49%, 69%)
CMYKcmyk(0%, 4%, 48.6%, 31.4%)
CIE-LABlab(67.92, -8.42, 40.90)
CIE-LCHlch(67.92, 41.76, 101.63°)
OKLaboklab(72.05% -0.0244 0.0975)
OKLCHoklch(72.05% 0.1 104.1)
XYZxyz(33.5281, 37.8584, 15.2121)
Luminance0.3786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA85A #5A61AF
analogous
#AF7E5A #AFA85A #8CAF5A
triadic
#AFA85A #5AAFA8 #A85AAF
tetradic
#AFA85A #5AAF7E #5A61AF #AF5A8C
square
#AFA85A #5AAF7E #5A61AF #AF5A8C
split-complementary
#AFA85A #5A8CAF #7E5AAF
monochromatic
#605C2F #898343 #AFA85A #C3BE83 #D7D3AC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA85A#FFFFFF#000000##000000
##AFA85A1.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)
#B4A353
Deuteranopia (green-blind)
#B7A75E
Tritanopia (blue-blind)
#BA9F96
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa85a;
/* rgb */ color: rgb(175, 168, 90);
/* oklch */ color: oklch(72.0% 0.100 104.1);
Tailwind
colors: {
  custom: {
    50: '#c9c18a',
    500: '#afa85a',
    950: '#000000',
  },
}
SCSS
$custom: #afa85a;
$custom-light: #c9c18a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa85a",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 90
  },
  "hsl": {
    "h": 55.059,
    "s": 34.694,
    "l": 51.961
  },
  "oklch": {
    "l": 0.72049,
    "c": 0.10047,
    "h": 104.1
  },
  "luminance": 0.37857
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA85A

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

Preview Lab → · Contrast checker → · Palette generator →

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