#8A7A1B#8A7A1B

#8A7A1B is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.7% C 0.110 H 99.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A7A1B
RGBrgb(138, 122, 27)
HSLhsl(51, 67%, 32%)
HSVhsv(51, 80%, 54%)
CMYKcmyk(0%, 11.6%, 80.4%, 45.9%)
CIE-LABlab(51.15, -4.26, 50.12)
CIE-LCHlch(51.15, 50.31, 94.86°)
OKLaboklab(57.75% -0.0174 0.109)
OKLCHoklch(57.75% 0.11 99.1)
XYZxyz(17.6395, 19.4024, 3.8526)
Luminance0.1940 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A1B #1B2B8A
analogous
#8A421B #8A7A1B #638A1B
triadic
#8A7A1B #1B8A7A #7A1B8A
tetradic
#8A7A1B #1B8A42 #1B2B8A #8A1B63
square
#8A7A1B #1B8A42 #1B2B8A #8A1B63
split-complementary
#8A7A1B #1B638A #421B8A
monochromatic
#241F07 #574D11 #8A7A1B #BDA725 #DBC545

Accessibility & contrast

On white

4.30
#8A7A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8A7A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7A1B
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7A1B#FFFFFF#000000##000000
##8A7A1B1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#877704
Deuteranopia (green-blind)
#8B7C22
Tritanopia (blue-blind)
#957068
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7a1b;
/* rgb */ color: rgb(138, 122, 27);
/* oklch */ color: oklch(57.7% 0.110 99.1);
Tailwind
colors: {
  custom: {
    50: '#b0a060',
    500: '#8a7a1b',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a1b;
$custom-light: #b0a060;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a1b",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 51.351,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57749,
    "c": 0.1104,
    "h": 99.1
  },
  "luminance": 0.19401
}

Semantic roles & 50–950 ramp

primary
#8A7A1B
secondary
#4556BC
accent
#57EA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8A7A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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