#8A812A#8A812A

#8A812A is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.4% C 0.107 H 103.4°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A812A
RGBrgb(138, 129, 42)
HSLhsl(54, 53%, 35%)
HSVhsv(54, 70%, 54%)
CMYKcmyk(0%, 6.5%, 69.6%, 45.9%)
CIE-LABlab(53.25, -7.41, 46.33)
CIE-LCHlch(53.25, 46.91, 99.08°)
OKLaboklab(59.44% -0.0247 0.1039)
OKLCHoklch(59.44% 0.107 103.4)
XYZxyz(18.7502, 21.2717, 5.3082)
Luminance0.2127 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A812A #2A338A
analogous
#8A512A #8A812A #638A2A
triadic
#8A812A #2A8A81 #812A8A
tetradic
#8A812A #2A8A51 #2A338A #8A2A63
square
#8A812A #2A8A51 #2A338A #8A2A63
split-complementary
#8A812A #2A638A #512A8A
monochromatic
#2C290D #5B551C #8A812A #B9AD38 #CFC460

Accessibility & contrast

On white

4.00
#8A812A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#8A812A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A812A
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A812A#FFFFFF#000000##000000
##8A812A1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D1E
Deuteranopia (green-blind)
#90812F
Tritanopia (blue-blind)
#94786F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a812a;
/* rgb */ color: rgb(138, 129, 42);
/* oklch */ color: oklch(59.4% 0.107 103.4);
Tailwind
colors: {
  custom: {
    50: '#afa569',
    500: '#8a812a',
    950: '#000000',
  },
}
SCSS
$custom: #8a812a;
$custom-light: #afa569;
$custom-dark: #000000;
JSON
{
  "hex": "#8a812a",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 42
  },
  "hsl": {
    "h": 54.375,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59441,
    "c": 0.10682,
    "h": 103.4
  },
  "luminance": 0.21271
}

Semantic roles & 50–950 ramp

primary
#8A812A
secondary
#5B64B4
accent
#59DD4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A812A

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

Preview Lab → · Contrast checker → · Palette generator →

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