#8A7B2E#8A7B2E

#8A7B2E is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 58.1% C 0.098 H 98.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A7B2E
RGBrgb(138, 123, 46)
HSLhsl(50, 50%, 36%)
HSVhsv(50, 67%, 54%)
CMYKcmyk(0%, 10.9%, 66.7%, 45.9%)
CIE-LABlab(51.57, -3.82, 42.81)
CIE-LCHlch(51.57, 42.98, 95.10°)
OKLaboklab(58.12% -0.014 0.0972)
OKLCHoklch(58.12% 0.098 98.2)
XYZxyz(18.0581, 19.7673, 5.4485)
Luminance0.1977 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B2E #2E3D8A
analogous
#8A4D2E #8A7B2E #6B8A2E
triadic
#8A7B2E #2E8A7B #7B2E8A
tetradic
#8A7B2E #2E8A4D #2E3D8A #8A2E6B
square
#8A7B2E #2E8A4D #2E3D8A #8A2E6B
split-complementary
#8A7B2E #2E6B8A #4D2E8A
monochromatic
#2E290F #5C521F #8A7B2E #B8A43D #CCBC66

Accessibility & contrast

On white

4.24
#8A7B2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8A7B2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B2E
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B2E#FFFFFF#000000##000000
##8A7B2E1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#877825
Deuteranopia (green-blind)
#8B7D32
Tritanopia (blue-blind)
#95726B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b2e;
/* rgb */ color: rgb(138, 123, 46);
/* oklch */ color: oklch(58.1% 0.098 98.2);
Tailwind
colors: {
  custom: {
    50: '#afa06b',
    500: '#8a7b2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b2e;
$custom-light: #afa06b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b2e",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 46
  },
  "hsl": {
    "h": 50.217,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58124,
    "c": 0.09817,
    "h": 98.2
  },
  "luminance": 0.19766
}

Semantic roles & 50–950 ramp

primary
#8A7B2E
secondary
#616EB3
accent
#65DA4E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A7B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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