#8A7F34#8A7F34

#8A7F34 is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.1% C 0.097 H 101.0°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8A7F34
RGBrgb(138, 127, 52)
HSLhsl(52, 45%, 37%)
HSVhsv(52, 62%, 54%)
CMYKcmyk(0%, 8%, 62.3%, 45.9%)
CIE-LABlab(52.76, -5.63, 41.27)
CIE-LCHlch(52.76, 41.65, 97.78°)
OKLaboklab(59.09% -0.0184 0.0948)
OKLCHoklch(59.09% 0.097 101)
XYZxyz(18.6911, 20.8307, 6.2843)
Luminance0.2083 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F34 #343F8A
analogous
#8A5434 #8A7F34 #6A8A34
triadic
#8A7F34 #348A7F #7F348A
tetradic
#8A7F34 #348A54 #343F8A #8A346A
square
#8A7F34 #348A54 #343F8A #8A346A
split-complementary
#8A7F34 #346A8A #54348A
monochromatic
#312D13 #5E5623 #8A7F34 #B6A845 #C9BD6F

Accessibility & contrast

On white

4.07
#8A7F34 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#8A7F34 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F34
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F34#FFFFFF#000000##000000
##8A7F341.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B2C
Deuteranopia (green-blind)
#8D8038
Tritanopia (blue-blind)
#94766F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f34;
/* rgb */ color: rgb(138, 127, 52);
/* oklch */ color: oklch(59.1% 0.097 101.0);
Tailwind
colors: {
  custom: {
    50: '#afa36f',
    500: '#8a7f34',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f34;
$custom-light: #afa36f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f34",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 52
  },
  "hsl": {
    "h": 52.326,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.59086,
    "c": 0.09659,
    "h": 101
  },
  "luminance": 0.2083
}

Semantic roles & 50–950 ramp

primary
#8A7F34
secondary
#6972B1
accent
#63D553
background
#FBFAF6
surface
#F6F3EC
border
#D0CDC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A7F34

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

Preview Lab → · Contrast checker → · Palette generator →

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