#8A7B2B#8A7B2B

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

Color values

HEX#8A7B2B
RGBrgb(138, 123, 43)
HSLhsl(51, 52%, 35%)
HSVhsv(51, 69%, 54%)
CMYKcmyk(0%, 10.9%, 68.8%, 45.9%)
CIE-LABlab(51.55, -4.01, 44.14)
CIE-LCHlch(51.55, 44.32, 95.20°)
OKLaboklab(58.1% -0.0149 0.0995)
OKLCHoklch(58.1% 0.101 98.5)
XYZxyz(18.0010, 19.7445, 5.1479)
Luminance0.1974 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B2B #2B3A8A
analogous
#8A4B2B #8A7B2B #698A2B
triadic
#8A7B2B #2B8A7B #7B2B8A
tetradic
#8A7B2B #2B8A4B #2B3A8A #8A2B69
square
#8A7B2B #2B8A4B #2B3A8A #8A2B69
split-complementary
#8A7B2B #2B698A #4B2B8A
monochromatic
#2D280E #5B511C #8A7B2B #B9A53A #CEBD61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7B2B#FFFFFF#000000##000000
##8A7B2B1.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)
#877821
Deuteranopia (green-blind)
#8B7D2F
Tritanopia (blue-blind)
#95726A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b2b;
/* rgb */ color: rgb(138, 123, 43);
/* oklch */ color: oklch(58.1% 0.101 98.5);
Tailwind
colors: {
  custom: {
    50: '#afa069',
    500: '#8a7b2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b2b;
$custom-light: #afa069;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b2b",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 43
  },
  "hsl": {
    "h": 50.526,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.58095,
    "c": 0.10059,
    "h": 98.5
  },
  "luminance": 0.19744
}

Semantic roles & 50–950 ramp

primary
#8A7B2B
secondary
#5D6BB4
accent
#63DC4C
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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