#8A7E1B#8A7E1B

#8A7E1B is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.7% C 0.114 H 102.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8A7E1B
RGBrgb(138, 126, 27)
HSLhsl(54, 67%, 32%)
HSVhsv(54, 80%, 54%)
CMYKcmyk(0%, 8.7%, 80.4%, 45.9%)
CIE-LABlab(52.29, -6.48, 51.15)
CIE-LCHlch(52.29, 51.56, 97.22°)
OKLaboklab(58.65% -0.0237 0.1112)
OKLCHoklch(58.65% 0.114 102)
XYZxyz(18.1408, 20.4049, 4.0197)
Luminance0.2040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E1B #1B278A
analogous
#8A471B #8A7E1B #5E8A1B
triadic
#8A7E1B #1B8A7E #7E1B8A
tetradic
#8A7E1B #1B8A47 #1B278A #8A1B5E
square
#8A7E1B #1B8A47 #1B278A #8A1B5E
split-complementary
#8A7E1B #1B5E8A #471B8A
monochromatic
#242107 #574F11 #8A7E1B #BDAD25 #DBCA45

Accessibility & contrast

On white

4.13
#8A7E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#8A7E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E1B
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E1B#FFFFFF#000000##000000
##8A7E1B1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A02
Deuteranopia (green-blind)
#8E7F23
Tritanopia (blue-blind)
#95746C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e1b;
/* rgb */ color: rgb(138, 126, 27);
/* oklch */ color: oklch(58.7% 0.114 102.0);
Tailwind
colors: {
  custom: {
    50: '#b0a361',
    500: '#8a7e1b',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e1b;
$custom-light: #b0a361;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e1b",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 53.514,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58652,
    "c": 0.1137,
    "h": 102
  },
  "luminance": 0.20404
}

Semantic roles & 50–950 ramp

primary
#8A7E1B
secondary
#4552BC
accent
#50EA3E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F05
muted
#807E7A

Preview Lab

Preview with #8A7E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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