#8A8151#8A8151

#8A8151 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.0% C 0.067 H 98.9°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#8A8151
RGBrgb(138, 129, 81)
HSLhsl(51, 26%, 43%)
HSVhsv(51, 41%, 54%)
CMYKcmyk(0%, 6.5%, 41.3%, 45.9%)
CIE-LABlab(53.71, -3.97, 27.24)
CIE-LCHlch(53.71, 27.53, 98.29°)
OKLaboklab(59.95% -0.0104 0.0666)
OKLCHoklch(59.95% 0.067 98.9)
XYZxyz(19.8171, 21.6985, 10.9273)
Luminance0.2170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8151 #515A8A
analogous
#8A6451 #8A8151 #768A51
triadic
#8A8151 #518A81 #81518A
tetradic
#8A8151 #518A64 #515A8A #8A5176
square
#8A8151 #518A64 #515A8A #8A5176
split-complementary
#8A8151 #51768A #64518A
monochromatic
#3D3924 #635D3A #8A8151 #AAA16E #C1BA95

Accessibility & contrast

On white

3.93
#8A8151 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#8A8151 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8151
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8151#FFFFFF#000000##000000
##8A81511.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7E4D
Deuteranopia (green-blind)
#8C8253
Tritanopia (blue-blind)
#927B75
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8151;
/* rgb */ color: rgb(138, 129, 81);
/* oklch */ color: oklch(60.0% 0.067 98.9);
Tailwind
colors: {
  custom: {
    50: '#ada582',
    500: '#8a8151',
    950: '#000000',
  },
}
SCSS
$custom: #8a8151;
$custom-light: #ada582;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8151",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 81
  },
  "hsl": {
    "h": 50.526,
    "s": 26.027,
    "l": 42.941
  },
  "oklch": {
    "l": 0.59954,
    "c": 0.06745,
    "h": 98.9
  },
  "luminance": 0.21698
}

Semantic roles & 50–950 ramp

primary
#8A8151
secondary
#898FAE
accent
#74C265
background
#FAFAF8
surface
#F4F4EF
border
#CECECA
text
#100F0A
muted
#7F7F7C

Preview Lab

Preview with #8A8151

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

Preview Lab → · Contrast checker → · Palette generator →

#8A8151 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva