#8A7E1F#8A7E1F

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

Color values

HEX#8A7E1F
RGBrgb(138, 126, 31)
HSLhsl(53, 63%, 33%)
HSVhsv(53, 78%, 54%)
CMYKcmyk(0%, 8.7%, 77.5%, 45.9%)
CIE-LABlab(52.31, -6.32, 49.78)
CIE-LCHlch(52.31, 50.18, 97.23°)
OKLaboklab(58.68% -0.0228 0.1091)
OKLCHoklch(58.68% 0.111 101.8)
XYZxyz(18.1903, 20.4247, 4.2803)
Luminance0.2042 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E1F #1F2B8A
analogous
#8A481F #8A7E1F #608A1F
triadic
#8A7E1F #1F8A7E #7E1F8A
tetradic
#8A7E1F #1F8A48 #1F2B8A #8A1F60
square
#8A7E1F #1F8A48 #1F2B8A #8A1F60
split-complementary
#8A7E1F #1F608A #481F8A
monochromatic
#262309 #585014 #8A7E1F #BCAC2A #D7C74C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7E1F#FFFFFF#000000##000000
##8A7E1F1.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)
#8A7A0B
Deuteranopia (green-blind)
#8E7F26
Tritanopia (blue-blind)
#95756C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e1f;
/* rgb */ color: rgb(138, 126, 31);
/* oklch */ color: oklch(58.7% 0.111 101.8);
Tailwind
colors: {
  custom: {
    50: '#b0a363',
    500: '#8a7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e1f;
$custom-light: #b0a363;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e1f",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 53.271,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58676,
    "c": 0.11147,
    "h": 101.8
  },
  "luminance": 0.20424
}

Semantic roles & 50–950 ramp

primary
#8A7E1F
secondary
#4B58BA
accent
#54E641
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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