#8A7B1B#8A7B1B

#8A7B1B is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 58.0% C 0.111 H 99.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A7B1B
RGBrgb(138, 123, 27)
HSLhsl(52, 67%, 32%)
HSVhsv(52, 80%, 54%)
CMYKcmyk(0%, 10.9%, 80.4%, 45.9%)
CIE-LABlab(51.44, -4.82, 50.38)
CIE-LCHlch(51.44, 50.61, 95.46°)
OKLaboklab(57.97% -0.019 0.1096)
OKLCHoklch(57.97% 0.111 99.8)
XYZxyz(17.7629, 19.6492, 3.8937)
Luminance0.1965 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B1B #1B2A8A
analogous
#8A441B #8A7B1B #628A1B
triadic
#8A7B1B #1B8A7B #7B1B8A
tetradic
#8A7B1B #1B8A44 #1B2A8A #8A1B62
square
#8A7B1B #1B8A44 #1B2A8A #8A1B62
split-complementary
#8A7B1B #1B628A #441B8A
monochromatic
#242007 #574D11 #8A7B1B #BDA925 #DBC645

Accessibility & contrast

On white

4.26
#8A7B1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#8A7B1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B1B
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B1B#FFFFFF#000000##000000
##8A7B1B1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#887703
Deuteranopia (green-blind)
#8C7D22
Tritanopia (blue-blind)
#957169
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b1b;
/* rgb */ color: rgb(138, 123, 27);
/* oklch */ color: oklch(58.0% 0.111 99.8);
Tailwind
colors: {
  custom: {
    50: '#b0a060',
    500: '#8a7b1b',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b1b;
$custom-light: #b0a060;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b1b",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 27
  },
  "hsl": {
    "h": 51.892,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57974,
    "c": 0.1112,
    "h": 99.8
  },
  "luminance": 0.19648
}

Semantic roles & 50–950 ramp

primary
#8A7B1B
secondary
#4555BC
accent
#55EA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8A7B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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