#A8A151#A8A151

#A8A151 is a light, moderate yellow. Relative luminance 0.344; OKLCH L 69.8% C 0.103 H 104.2°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#A8A151
RGBrgb(168, 161, 81)
HSLhsl(55, 35%, 49%)
HSVhsv(55, 52%, 66%)
CMYKcmyk(0%, 4.2%, 51.8%, 34.1%)
CIE-LABlab(65.29, -8.51, 42.11)
CIE-LCHlch(65.29, 42.96, 101.43°)
OKLaboklab(69.78% -0.0252 0.0994)
OKLCHoklch(69.78% 0.103 104.2)
XYZxyz(30.3794, 34.4096, 12.8244)
Luminance0.3441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A151 #5158A8
analogous
#A87651 #A8A151 #84A851
triadic
#A8A151 #51A8A1 #A151A8
tetradic
#A8A151 #51A876 #5158A8 #A85184
square
#A8A151 #51A876 #5158A8 #A85184
split-complementary
#A8A151 #5184A8 #7651A8
monochromatic
#555229 #7F793D #A8A151 #BEB878 #D2CEA1

Accessibility & contrast

On white

2.66
#A8A151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#A8A151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A151
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A151#FFFFFF#000000##000000
##A8A1511.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9C4A
Deuteranopia (green-blind)
#B0A055
Tritanopia (blue-blind)
#B3988F
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a151;
/* rgb */ color: rgb(168, 161, 81);
/* oklch */ color: oklch(69.8% 0.103 104.2);
Tailwind
colors: {
  custom: {
    50: '#c4bc84',
    500: '#a8a151',
    950: '#000000',
  },
}
SCSS
$custom: #a8a151;
$custom-light: #c4bc84;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a151",
  "rgb": {
    "r": 168,
    "g": 161,
    "b": 81
  },
  "hsl": {
    "h": 55.172,
    "s": 34.94,
    "l": 48.824
  },
  "oklch": {
    "l": 0.6978,
    "c": 0.10255,
    "h": 104.2
  },
  "luminance": 0.34409
}

Semantic roles & 50–950 ramp

primary
#A8A151
secondary
#9699BF
accent
#66CB5D
background
#FCFBF8
surface
#F8F6EF
border
#D1D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #A8A151

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

Preview Lab → · Contrast checker → · Palette generator →

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