#A8B171#A8B171

#A8B171 is a light, moderate yellow. Relative luminance 0.410; OKLCH L 73.8% C 0.086 H 115.1°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#A8B171
RGBrgb(168, 177, 113)
HSLhsl(68, 29%, 57%)
HSVhsv(68, 36%, 69%)
CMYKcmyk(5.1%, 0%, 36.2%, 30.6%)
CIE-LABlab(70.15, -13.46, 31.73)
CIE-LCHlch(70.15, 34.46, 112.99°)
OKLaboklab(73.79% -0.0366 0.0782)
OKLCHoklch(73.79% 0.086 115.1)
XYZxyz(34.8514, 40.9617, 21.6900)
Luminance0.4096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B171 #7A71B1
analogous
#B19A71 #A8B171 #88B171
triadic
#A8B171 #71A8B1 #B171A8
tetradic
#A8B171 #71B19A #7A71B1 #B17188
square
#A8B171 #71B19A #7A71B1 #B17188
split-complementary
#A8B171 #7188B1 #9A71B1
monochromatic
#656C3B #8A9451 #A8B171 #C0C799 #D8DCC0

Accessibility & contrast

On white

2.28
#A8B171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.19
#A8B171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B171
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B171#FFFFFF#000000##000000
##A8B1711.002.289.199.19
#FFFFFF2.281.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAAB6C
Deuteranopia (green-blind)
#B9AC74
Tritanopia (blue-blind)
#AFAAA1
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a8b171;
/* rgb */ color: rgb(168, 177, 113);
/* oklch */ color: oklch(73.8% 0.086 115.1);
Tailwind
colors: {
  custom: {
    50: '#c2c89a',
    500: '#a8b171',
    950: '#000000',
  },
}
SCSS
$custom: #a8b171;
$custom-light: #c2c89a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b171",
  "rgb": {
    "r": 168,
    "g": 177,
    "b": 113
  },
  "hsl": {
    "h": 68.438,
    "s": 29.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.73793,
    "c": 0.08629,
    "h": 115.1
  },
  "luminance": 0.40961
}

Semantic roles & 50–950 ramp

primary
#A8B171
secondary
#B6B2CC
accent
#62C570
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#12130E
muted
#81827E

Preview Lab

Preview with #A8B171

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

Preview Lab → · Contrast checker → · Palette generator →

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