#8A812E#8A812E

#8A812E is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.5% C 0.104 H 103.1°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8A812E
RGBrgb(138, 129, 46)
HSLhsl(54, 50%, 36%)
HSVhsv(54, 67%, 54%)
CMYKcmyk(0%, 6.5%, 66.7%, 45.9%)
CIE-LABlab(53.28, -7.16, 44.61)
CIE-LCHlch(53.28, 45.18, 99.12°)
OKLaboklab(59.48% -0.0235 0.101)
OKLCHoklch(59.48% 0.104 103.1)
XYZxyz(18.8254, 21.3018, 5.7043)
Luminance0.2130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A812E #2E378A
analogous
#8A532E #8A812E #658A2E
triadic
#8A812E #2E8A81 #812E8A
tetradic
#8A812E #2E8A53 #2E378A #8A2E65
square
#8A812E #2E8A53 #2E378A #8A2E65
split-complementary
#8A812E #2E658A #532E8A
monochromatic
#2E2B0F #5C561F #8A812E #B8AC3D #CCC266

Accessibility & contrast

On white

3.99
#8A812E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#8A812E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A812E
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A812E#FFFFFF#000000##000000
##8A812E1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7D23
Deuteranopia (green-blind)
#8F8133
Tritanopia (blue-blind)
#947870
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a812e;
/* rgb */ color: rgb(138, 129, 46);
/* oklch */ color: oklch(59.5% 0.104 103.1);
Tailwind
colors: {
  custom: {
    50: '#afa56b',
    500: '#8a812e',
    950: '#000000',
  },
}
SCSS
$custom: #8a812e;
$custom-light: #afa56b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a812e",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 46
  },
  "hsl": {
    "h": 54.13,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59477,
    "c": 0.10368,
    "h": 103.1
  },
  "luminance": 0.21301
}

Semantic roles & 50–950 ramp

primary
#8A812E
secondary
#6169B3
accent
#5CDA4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A812E

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

Preview Lab → · Contrast checker → · Palette generator →

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