#8A873E#8A873E

#8A873E is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.0% C 0.095 H 106.8°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A873E
RGBrgb(138, 135, 62)
HSLhsl(58, 38%, 39%)
HSVhsv(58, 55%, 54%)
CMYKcmyk(0%, 2.2%, 55.1%, 45.9%)
CIE-LABlab(55.15, -9.23, 39.06)
CIE-LCHlch(55.15, 40.14, 103.29°)
OKLaboklab(61.02% -0.0275 0.0914)
OKLCHoklch(61.02% 0.095 106.8)
XYZxyz(20.0153, 23.0796, 7.9570)
Luminance0.2308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A873E #3E418A
analogous
#8A613E #8A873E #678A3E
triadic
#8A873E #3E8A87 #873E8A
tetradic
#8A873E #3E8A61 #3E418A #8A3E67
square
#8A873E #3E8A61 #3E418A #8A3E67
split-complementary
#8A873E #3E678A #613E8A
monochromatic
#363418 #605E2B #8A873E #B2AE53 #C5C27E

Accessibility & contrast

On white

3.74
#8A873E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#8A873E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A873E
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A873E#FFFFFF#000000##000000
##8A873E1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#918237
Deuteranopia (green-blind)
#938542
Tritanopia (blue-blind)
#937F77
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a873e;
/* rgb */ color: rgb(138, 135, 62);
/* oklch */ color: oklch(61.0% 0.095 106.8);
Tailwind
colors: {
  custom: {
    50: '#aea976',
    500: '#8a873e',
    950: '#000000',
  },
}
SCSS
$custom: #8a873e;
$custom-light: #aea976;
$custom-dark: #000000;
JSON
{
  "hex": "#8a873e",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 62
  },
  "hsl": {
    "h": 57.632,
    "s": 38,
    "l": 39.216
  },
  "oklch": {
    "l": 0.6102,
    "c": 0.09541,
    "h": 106.8
  },
  "luminance": 0.23079
}

Semantic roles & 50–950 ramp

primary
#8A873E
secondary
#7577AF
accent
#5ECE5A
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#100F08
muted
#7F7F7B

Preview Lab

Preview with #8A873E

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

Preview Lab → · Contrast checker → · Palette generator →

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