#A8A271#A8A271

#A8A271 is a light, moderate yellow. Relative luminance 0.354; OKLCH L 70.5% C 0.067 H 102.0°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#A8A271
RGBrgb(168, 162, 113)
HSLhsl(53, 24%, 55%)
HSVhsv(53, 33%, 66%)
CMYKcmyk(0%, 3.6%, 32.7%, 34.1%)
CIE-LABlab(66.03, -5.55, 26.32)
CIE-LCHlch(66.03, 26.90, 101.90°)
OKLaboklab(70.52% -0.014 0.0655)
OKLCHoklch(70.52% 0.067 102)
XYZxyz(32.0497, 35.3585, 20.7561)
Luminance0.3536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A271 #7177A8
analogous
#A88771 #A8A271 #92A871
triadic
#A8A271 #71A8A2 #A271A8
tetradic
#A8A271 #71A887 #7177A8 #A87192
square
#A8A271 #71A887 #7177A8 #A87192
split-complementary
#A8A271 #7192A8 #8771A8
monochromatic
#625E3C #888354 #A8A271 #BFBB97 #D7D4BD

Accessibility & contrast

On white

2.60
#A8A271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#A8A271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A271
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A271#FFFFFF#000000##000000
##A8A2711.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9F6E
Deuteranopia (green-blind)
#ADA273
Tritanopia (blue-blind)
#B09B95
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a8a271;
/* rgb */ color: rgb(168, 162, 113);
/* oklch */ color: oklch(70.5% 0.067 102.0);
Tailwind
colors: {
  custom: {
    50: '#c2bd9a',
    500: '#a8a271',
    950: '#000000',
  },
}
SCSS
$custom: #a8a271;
$custom-light: #c2bd9a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a271",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 113
  },
  "hsl": {
    "h": 53.455,
    "s": 24.017,
    "l": 55.098
  },
  "oklch": {
    "l": 0.70519,
    "c": 0.06701,
    "h": 102
  },
  "luminance": 0.35358
}

Semantic roles & 50–950 ramp

primary
#A8A271
secondary
#AFB1C6
accent
#71C067
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#12120E
muted
#81817E

Preview Lab

Preview with #A8A271

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

Preview Lab → · Contrast checker → · Palette generator →

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