#8A811F#8A811F

#8A811F is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.4% C 0.114 H 103.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A811F
RGBrgb(138, 129, 31)
HSLhsl(55, 63%, 33%)
HSVhsv(55, 78%, 54%)
CMYKcmyk(0%, 6.5%, 77.5%, 45.9%)
CIE-LABlab(53.17, -7.97, 50.58)
CIE-LCHlch(53.17, 51.20, 98.96°)
OKLaboklab(59.36% -0.0275 0.1108)
OKLCHoklch(59.36% 0.114 103.9)
XYZxyz(18.5796, 21.2035, 4.4101)
Luminance0.2120 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A811F #1F288A
analogous
#8A4B1F #8A811F #5D8A1F
triadic
#8A811F #1F8A81 #811F8A
tetradic
#8A811F #1F8A4B #1F288A #8A1F5D
square
#8A811F #1F8A4B #1F288A #8A1F5D
split-complementary
#8A811F #1F5D8A #4B1F8A
monochromatic
#262409 #585214 #8A811F #BCB02A #D7CB4C

Accessibility & contrast

On white

4.01
#8A811F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#8A811F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A811F
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A811F#FFFFFF#000000##000000
##8A811F1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C09
Deuteranopia (green-blind)
#908126
Tritanopia (blue-blind)
#95786E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a811f;
/* rgb */ color: rgb(138, 129, 31);
/* oklch */ color: oklch(59.4% 0.114 103.9);
Tailwind
colors: {
  custom: {
    50: '#b0a563',
    500: '#8a811f',
    950: '#000000',
  },
}
SCSS
$custom: #8a811f;
$custom-light: #b0a563;
$custom-dark: #000000;
JSON
{
  "hex": "#8a811f",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 54.953,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59358,
    "c": 0.11416,
    "h": 103.9
  },
  "luminance": 0.21203
}

Semantic roles & 50–950 ramp

primary
#8A811F
secondary
#4B54BA
accent
#4FE641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A811F

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

Preview Lab → · Contrast checker → · Palette generator →

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