#8A851F#8A851F

#8A851F is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.3% C 0.118 H 106.5°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A851F
RGBrgb(138, 133, 31)
HSLhsl(57, 63%, 33%)
HSVhsv(57, 78%, 54%)
CMYKcmyk(0%, 3.6%, 77.5%, 45.9%)
CIE-LABlab(54.32, -10.15, 51.64)
CIE-LCHlch(54.32, 52.63, 101.12°)
OKLaboklab(60.27% -0.0336 0.1131)
OKLCHoklch(60.27% 0.118 106.5)
XYZxyz(19.1169, 22.2780, 4.5891)
Luminance0.2228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A851F #1F248A
analogous
#8A4F1F #8A851F #598A1F
triadic
#8A851F #1F8A85 #851F8A
tetradic
#8A851F #1F8A4F #1F248A #8A1F59
square
#8A851F #1F8A4F #1F248A #8A1F59
split-complementary
#8A851F #1F598A #4F1F8A
monochromatic
#262509 #585514 #8A851F #BCB52A #D7D04C

Accessibility & contrast

On white

3.85
#8A851F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#8A851F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A851F
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A851F#FFFFFF#000000##000000
##8A851F1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918007
Deuteranopia (green-blind)
#938427
Tritanopia (blue-blind)
#957C72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a851f;
/* rgb */ color: rgb(138, 133, 31);
/* oklch */ color: oklch(60.3% 0.118 106.5);
Tailwind
colors: {
  custom: {
    50: '#b0a864',
    500: '#8a851f',
    950: '#000000',
  },
}
SCSS
$custom: #8a851f;
$custom-light: #b0a864;
$custom-dark: #000000;
JSON
{
  "hex": "#8a851f",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 57.196,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60273,
    "c": 0.11796,
    "h": 106.5
  },
  "luminance": 0.22277
}

Semantic roles & 50–950 ramp

primary
#8A851F
secondary
#4B50BA
accent
#49E641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A851F

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

Preview Lab → · Contrast checker → · Palette generator →

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