#8A7F1F#8A7F1F

#8A7F1F is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.112 H 102.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A7F1F
RGBrgb(138, 127, 31)
HSLhsl(54, 63%, 33%)
HSVhsv(54, 78%, 54%)
CMYKcmyk(0%, 8%, 77.5%, 45.9%)
CIE-LABlab(52.60, -6.87, 50.05)
CIE-LCHlch(52.60, 50.51, 97.82°)
OKLaboklab(58.9% -0.0244 0.1097)
OKLCHoklch(58.9% 0.112 102.5)
XYZxyz(18.3188, 20.6818, 4.3231)
Luminance0.2068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F1F #1F2A8A
analogous
#8A491F #8A7F1F #5F8A1F
triadic
#8A7F1F #1F8A7F #7F1F8A
tetradic
#8A7F1F #1F8A49 #1F2A8A #8A1F5F
square
#8A7F1F #1F8A49 #1F2A8A #8A1F5F
split-complementary
#8A7F1F #1F5F8A #491F8A
monochromatic
#262309 #585114 #8A7F1F #BCAD2A #D7C94C

Accessibility & contrast

On white

4.09
#8A7F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#8A7F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F1F
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F1F#FFFFFF#000000##000000
##8A7F1F1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0B
Deuteranopia (green-blind)
#8F8026
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7f1f;
/* rgb */ color: rgb(138, 127, 31);
/* oklch */ color: oklch(58.9% 0.112 102.5);
Tailwind
colors: {
  custom: {
    50: '#b0a363',
    500: '#8a7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f1f;
$custom-light: #b0a363;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f1f",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 53.832,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58903,
    "c": 0.11235,
    "h": 102.5
  },
  "luminance": 0.20681
}

Semantic roles & 50–950 ramp

primary
#8A7F1F
secondary
#4B57BA
accent
#52E641
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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