#8A7E2E#8A7E2E

#8A7E2E is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.101 H 100.7°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A7E2E
RGBrgb(138, 126, 46)
HSLhsl(52, 50%, 36%)
HSVhsv(52, 67%, 54%)
CMYKcmyk(0%, 8.7%, 66.7%, 45.9%)
CIE-LABlab(52.42, -5.50, 43.71)
CIE-LCHlch(52.42, 44.05, 97.17°)
OKLaboklab(58.8% -0.0188 0.0991)
OKLCHoklch(58.8% 0.101 100.7)
XYZxyz(18.4360, 20.5230, 5.5745)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E2E #2E3A8A
analogous
#8A502E #8A7E2E #688A2E
triadic
#8A7E2E #2E8A7E #7E2E8A
tetradic
#8A7E2E #2E8A50 #2E3A8A #8A2E68
square
#8A7E2E #2E8A50 #2E3A8A #8A2E68
split-complementary
#8A7E2E #2E688A #502E8A
monochromatic
#2E2A0F #5C541F #8A7E2E #B8A83D #CCBF66

Accessibility & contrast

On white

4.11
#8A7E2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8A7E2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E2E
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E2E#FFFFFF#000000##000000
##8A7E2E1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A24
Deuteranopia (green-blind)
#8D7F32
Tritanopia (blue-blind)
#94756D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e2e;
/* rgb */ color: rgb(138, 126, 46);
/* oklch */ color: oklch(58.8% 0.101 100.7);
Tailwind
colors: {
  custom: {
    50: '#afa36b',
    500: '#8a7e2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e2e;
$custom-light: #afa36b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e2e",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 46
  },
  "hsl": {
    "h": 52.174,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58798,
    "c": 0.10084,
    "h": 100.7
  },
  "luminance": 0.20522
}

Semantic roles & 50–950 ramp

primary
#8A7E2E
secondary
#616CB3
accent
#60DA4E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8A7E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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