#8A812C#8A812C

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

Color values

HEX#8A812C
RGBrgb(138, 129, 44)
HSLhsl(54, 52%, 36%)
HSVhsv(54, 68%, 54%)
CMYKcmyk(0%, 6.5%, 68.1%, 45.9%)
CIE-LABlab(53.26, -7.28, 45.48)
CIE-LCHlch(53.26, 46.06, 99.10°)
OKLaboklab(59.46% -0.0241 0.1025)
OKLCHoklch(59.46% 0.105 103.2)
XYZxyz(18.7869, 21.2864, 5.5015)
Luminance0.2129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A812C #2C358A
analogous
#8A522C #8A812C #648A2C
triadic
#8A812C #2C8A81 #812C8A
tetradic
#8A812C #2C8A52 #2C358A #8A2C64
square
#8A812C #2C8A52 #2C358A #8A2C64
split-complementary
#8A812C #2C648A #522C8A
monochromatic
#2D2A0E #5C561D #8A812C #B8AC3B #CDC363

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A812C#FFFFFF#000000##000000
##8A812C1.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)
#8D7D21
Deuteranopia (green-blind)
#8F8131
Tritanopia (blue-blind)
#947870
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a812c;
/* rgb */ color: rgb(138, 129, 44);
/* oklch */ color: oklch(59.5% 0.105 103.2);
Tailwind
colors: {
  custom: {
    50: '#afa56a',
    500: '#8a812c',
    950: '#000000',
  },
}
SCSS
$custom: #8a812c;
$custom-light: #afa56a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a812c",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 44
  },
  "hsl": {
    "h": 54.255,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59458,
    "c": 0.10528,
    "h": 103.2
  },
  "luminance": 0.21286
}

Semantic roles & 50–950 ramp

primary
#8A812C
secondary
#5E66B4
accent
#5ADB4D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A812C

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

Preview Lab → · Contrast checker → · Palette generator →

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