#8A7A2E#8A7A2E

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

Color values

HEX#8A7A2E
RGBrgb(138, 122, 46)
HSLhsl(50, 50%, 36%)
HSVhsv(50, 67%, 54%)
CMYKcmyk(0%, 11.6%, 66.7%, 45.9%)
CIE-LABlab(51.29, -3.26, 42.50)
CIE-LCHlch(51.29, 42.63, 94.39°)
OKLaboklab(57.9% -0.0124 0.0965)
OKLCHoklch(57.9% 0.097 97.3)
XYZxyz(17.9347, 19.5205, 5.4074)
Luminance0.1952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A2E #2E3E8A
analogous
#8A4C2E #8A7A2E #6C8A2E
triadic
#8A7A2E #2E8A7A #7A2E8A
tetradic
#8A7A2E #2E8A4C #2E3E8A #8A2E6C
square
#8A7A2E #2E8A4C #2E3E8A #8A2E6C
split-complementary
#8A7A2E #2E6C8A #4C2E8A
monochromatic
#2E290F #5C511F #8A7A2E #B8A33D #CCBA66

Accessibility & contrast

On white

4.28
#8A7A2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7A2E#FFFFFF#000000##000000
##8A7A2E1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#867725
Deuteranopia (green-blind)
#8A7D32
Tritanopia (blue-blind)
#95716A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7a2e;
/* rgb */ color: rgb(138, 122, 46);
/* oklch */ color: oklch(57.9% 0.097 97.3);
Tailwind
colors: {
  custom: {
    50: '#afa06b',
    500: '#8a7a2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a2e;
$custom-light: #afa06b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a2e",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 46
  },
  "hsl": {
    "h": 49.565,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.579,
    "c": 0.09731,
    "h": 97.3
  },
  "luminance": 0.1952
}

Semantic roles & 50–950 ramp

primary
#8A7A2E
secondary
#616FB3
accent
#66DA4E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A7A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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