#8A7F36#8A7F36

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

Color values

HEX#8A7F36
RGBrgb(138, 127, 54)
HSLhsl(52, 44%, 38%)
HSVhsv(52, 61%, 54%)
CMYKcmyk(0%, 8%, 60.9%, 45.9%)
CIE-LABlab(52.78, -5.48, 40.32)
CIE-LCHlch(52.78, 40.69, 97.74°)
OKLaboklab(59.11% -0.0178 0.0931)
OKLCHoklch(59.11% 0.095 100.8)
XYZxyz(18.7372, 20.8491, 6.5266)
Luminance0.2085 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F36 #36418A
analogous
#8A5536 #8A7F36 #6B8A36
triadic
#8A7F36 #368A7F #7F368A
tetradic
#8A7F36 #368A55 #36418A #8A366B
square
#8A7F36 #368A55 #36418A #8A366B
split-complementary
#8A7F36 #366B8A #55368A
monochromatic
#322E14 #5E5725 #8A7F36 #B6A747 #C8BD72

Accessibility & contrast

On white

4.06
#8A7F36 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7F36#FFFFFF#000000##000000
##8A7F361.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B2E
Deuteranopia (green-blind)
#8D803A
Tritanopia (blue-blind)
#94776F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f36;
/* rgb */ color: rgb(138, 127, 54);
/* oklch */ color: oklch(59.1% 0.095 100.8);
Tailwind
colors: {
  custom: {
    50: '#aea370',
    500: '#8a7f36',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f36;
$custom-light: #aea370;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f36",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 54
  },
  "hsl": {
    "h": 52.143,
    "s": 43.75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.59109,
    "c": 0.09475,
    "h": 100.8
  },
  "luminance": 0.20848
}

Semantic roles & 50–950 ramp

primary
#8A7F36
secondary
#6B74B1
accent
#65D354
background
#FBFAF6
surface
#F6F3EC
border
#D0CDC7
text
#110F08
muted
#807F7B

Preview Lab

Preview with #8A7F36

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

Preview Lab → · Contrast checker → · Palette generator →

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