#8A7A2A#8A7A2A

#8A7A2A is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.9% C 0.101 H 97.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8A7A2A
RGBrgb(138, 122, 42)
HSLhsl(50, 53%, 35%)
HSVhsv(50, 70%, 54%)
CMYKcmyk(0%, 11.6%, 69.6%, 45.9%)
CIE-LABlab(51.26, -3.51, 44.28)
CIE-LCHlch(51.26, 44.42, 94.54°)
OKLaboklab(57.86% -0.0136 0.0996)
OKLCHoklch(57.86% 0.101 97.8)
XYZxyz(17.8595, 19.4904, 5.0113)
Luminance0.1949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A2A #2A3A8A
analogous
#8A4A2A #8A7A2A #6A8A2A
triadic
#8A7A2A #2A8A7A #7A2A8A
tetradic
#8A7A2A #2A8A4A #2A3A8A #8A2A6A
square
#8A7A2A #2A8A4A #2A3A8A #8A2A6A
split-complementary
#8A7A2A #2A6A8A #4A2A8A
monochromatic
#2C270D #5B511C #8A7A2A #B9A338 #CFBC60

Accessibility & contrast

On white

4.29
#8A7A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#8A7A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7A2A
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7A2A#FFFFFF#000000##000000
##8A7A2A1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#86771F
Deuteranopia (green-blind)
#8A7C2E
Tritanopia (blue-blind)
#95716A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7a2a;
/* rgb */ color: rgb(138, 122, 42);
/* oklch */ color: oklch(57.9% 0.101 97.8);
Tailwind
colors: {
  custom: {
    50: '#afa068',
    500: '#8a7a2a',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a2a;
$custom-light: #afa068;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a2a",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 42
  },
  "hsl": {
    "h": 50,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.57862,
    "c": 0.10053,
    "h": 97.8
  },
  "luminance": 0.1949
}

Semantic roles & 50–950 ramp

primary
#8A7A2A
secondary
#5B6AB4
accent
#63DD4B
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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