#8A811B#8A811B

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

Color values

HEX#8A811B
RGBrgb(138, 129, 27)
HSLhsl(55, 67%, 32%)
HSVhsv(55, 80%, 54%)
CMYKcmyk(0%, 6.5%, 80.4%, 45.9%)
CIE-LABlab(53.15, -8.14, 51.92)
CIE-LCHlch(53.15, 52.55, 98.91°)
OKLaboklab(59.33% -0.0283 0.1129)
OKLCHoklch(59.33% 0.116 104.1)
XYZxyz(18.5302, 21.1837, 4.1495)
Luminance0.2118 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A811B #1B248A
analogous
#8A491B #8A811B #5C8A1B
triadic
#8A811B #1B8A81 #811B8A
tetradic
#8A811B #1B8A49 #1B248A #8A1B5C
square
#8A811B #1B8A49 #1B248A #8A1B5C
split-complementary
#8A811B #1B5C8A #491B8A
monochromatic
#242107 #575111 #8A811B #BDB125 #DBCE45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A811B#FFFFFF#000000##000000
##8A811B1.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)
#8D7C00
Deuteranopia (green-blind)
#908123
Tritanopia (blue-blind)
#95776E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a811b;
/* rgb */ color: rgb(138, 129, 27);
/* oklch */ color: oklch(59.3% 0.116 104.1);
Tailwind
colors: {
  custom: {
    50: '#b0a561',
    500: '#8a811b',
    950: '#000000',
  },
}
SCSS
$custom: #8a811b;
$custom-light: #b0a561;
$custom-dark: #000000;
JSON
{
  "hex": "#8a811b",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 55.135,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59334,
    "c": 0.11637,
    "h": 104.1
  },
  "luminance": 0.21183
}

Semantic roles & 50–950 ramp

primary
#8A811B
secondary
#454EBC
accent
#4CEA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8A811B

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

Preview Lab → · Contrast checker → · Palette generator →

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