#A5A87F#A5A87F

#A5A87F is a light, muted yellow. Relative luminance 0.375; OKLCH L 71.9% C 0.057 H 111.2°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#A5A87F
RGBrgb(165, 168, 127)
HSLhsl(64, 19%, 58%)
HSVhsv(64, 24%, 66%)
CMYKcmyk(1.8%, 0%, 24.4%, 34.1%)
CIE-LABlab(67.68, -8.02, 20.89)
CIE-LCHlch(67.68, 22.38, 111.00°)
OKLaboklab(71.85% -0.0205 0.0529)
OKLCHoklch(71.85% 0.057 111.2)
XYZxyz(33.3503, 37.5372, 25.5631)
Luminance0.3754 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A87F #827FA8
analogous
#A8967F #A5A87F #90A87F
triadic
#A5A87F #7FA5A8 #A87FA5
tetradic
#A5A87F #7FA896 #827FA8 #A87F90
square
#A5A87F #7FA896 #827FA8 #A87F90
split-complementary
#A5A87F #7F90A8 #967FA8
monochromatic
#646746 #888B5F #A5A87F #BFC1A3 #D8DAC8

Accessibility & contrast

On white

2.47
#A5A87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#A5A87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A87F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A87F#FFFFFF#000000##000000
##A5A87F1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA47C
Deuteranopia (green-blind)
#AFA581
Tritanopia (blue-blind)
#AAA39D
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a5a87f;
/* rgb */ color: rgb(165, 168, 127);
/* oklch */ color: oklch(71.9% 0.057 111.2);
Tailwind
colors: {
  custom: {
    50: '#c0c1a4',
    500: '#a5a87f',
    950: '#000000',
  },
}
SCSS
$custom: #a5a87f;
$custom-light: #c0c1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a87f",
  "rgb": {
    "r": 165,
    "g": 168,
    "b": 127
  },
  "hsl": {
    "h": 64.39,
    "s": 19.07,
    "l": 57.843
  },
  "oklch": {
    "l": 0.71851,
    "c": 0.05673,
    "h": 111.2
  },
  "luminance": 0.37537
}

Semantic roles & 50–950 ramp

primary
#A5A87F
secondary
#BAB9CA
accent
#6CBC72
background
#FBFBFA
surface
#F7F7F4
border
#D0D0CE
text
#12120F
muted
#81817F

Preview Lab

Preview with #A5A87F

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

Preview Lab → · Contrast checker → · Palette generator →

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