#8B781F#8B781F

#8B781F is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.4% C 0.107 H 96.5°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8B781F
RGBrgb(139, 120, 31)
HSLhsl(49, 64%, 33%)
HSVhsv(49, 78%, 55%)
CMYKcmyk(0%, 13.7%, 77.7%, 45.5%)
CIE-LABlab(50.71, -2.50, 48.32)
CIE-LCHlch(50.71, 48.38, 92.96°)
OKLaboklab(57.43% -0.0121 0.106)
OKLCHoklch(57.43% 0.107 96.5)
XYZxyz(17.6122, 19.0218, 4.0400)
Luminance0.1902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B781F #1F328B
analogous
#8B421F #8B781F #688B1F
triadic
#8B781F #1F8B78 #781F8B
tetradic
#8B781F #1F8B42 #1F328B #8B1F68
square
#8B781F #1F8B42 #1F328B #8B1F68
split-complementary
#8B781F #1F688B #421F8B
monochromatic
#272209 #594D14 #8B781F #BDA32A #D7BF4D

Accessibility & contrast

On white

4.37
#8B781F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#8B781F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B781F
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B781F#FFFFFF#000000##000000
##8B781F1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#85750E
Deuteranopia (green-blind)
#8A7B25
Tritanopia (blue-blind)
#976E67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8b781f;
/* rgb */ color: rgb(139, 120, 31);
/* oklch */ color: oklch(57.4% 0.107 96.5);
Tailwind
colors: {
  custom: {
    50: '#b09e62',
    500: '#8b781f',
    950: '#000000',
  },
}
SCSS
$custom: #8b781f;
$custom-light: #b09e62;
$custom-dark: #000000;
JSON
{
  "hex": "#8b781f",
  "rgb": {
    "r": 139,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 49.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5743,
    "c": 0.10664,
    "h": 96.5
  },
  "luminance": 0.19021
}

Semantic roles & 50–950 ramp

primary
#8B781F
secondary
#4C5FBA
accent
#5EE741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8B781F

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

Preview Lab → · Contrast checker → · Palette generator →

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