#8A7F2E#8A7F2E

#8A7F2E is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.0% C 0.102 H 101.6°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A7F2E
RGBrgb(138, 127, 46)
HSLhsl(53, 50%, 36%)
HSVhsv(53, 67%, 54%)
CMYKcmyk(0%, 8%, 66.7%, 45.9%)
CIE-LABlab(52.71, -6.05, 44.01)
CIE-LCHlch(52.71, 44.42, 97.83°)
OKLaboklab(59.02% -0.0204 0.0997)
OKLCHoklch(59.02% 0.102 101.6)
XYZxyz(18.5645, 20.7800, 5.6173)
Luminance0.2078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F2E #2E398A
analogous
#8A512E #8A7F2E #678A2E
triadic
#8A7F2E #2E8A7F #7F2E8A
tetradic
#8A7F2E #2E8A51 #2E398A #8A2E67
square
#8A7F2E #2E8A51 #2E398A #8A2E67
split-complementary
#8A7F2E #2E678A #512E8A
monochromatic
#2E2B0F #5C551F #8A7F2E #B8A93D #CCC066

Accessibility & contrast

On white

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

On black

5.16
#8A7F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F2E
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F2E#FFFFFF#000000##000000
##8A7F2E1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B24
Deuteranopia (green-blind)
#8E8033
Tritanopia (blue-blind)
#94766E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f2e;
/* rgb */ color: rgb(138, 127, 46);
/* oklch */ color: oklch(59.0% 0.102 101.6);
Tailwind
colors: {
  custom: {
    50: '#afa36b',
    500: '#8a7f2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f2e;
$custom-light: #afa36b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f2e",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 52.826,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59024,
    "c": 0.10177,
    "h": 101.6
  },
  "luminance": 0.20779
}

Semantic roles & 50–950 ramp

primary
#8A7F2E
secondary
#616BB3
accent
#5FDA4E
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A7F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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