#8A7827#8A7827

#8A7827 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.4% C 0.101 H 96.4°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8A7827
RGBrgb(138, 120, 39)
HSLhsl(49, 56%, 35%)
HSVhsv(49, 72%, 54%)
CMYKcmyk(0%, 13%, 71.7%, 45.9%)
CIE-LABlab(50.67, -2.56, 45.00)
CIE-LCHlch(50.67, 45.07, 93.26°)
OKLaboklab(57.39% -0.0113 0.1006)
OKLCHoklch(57.39% 0.101 96.4)
XYZxyz(17.5648, 18.9836, 4.6581)
Luminance0.1898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7827 #27398A
analogous
#8A4727 #8A7827 #6B8A27
triadic
#8A7827 #278A78 #78278A
tetradic
#8A7827 #278A47 #27398A #8A276B
square
#8A7827 #278A47 #27398A #8A276B
split-complementary
#8A7827 #276B8A #47278A
monochromatic
#2B250C #5A4F1A #8A7827 #BAA134 #D1BB5B

Accessibility & contrast

On white

4.38
#8A7827 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#8A7827 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7827
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7827#FFFFFF#000000##000000
##8A78271.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#84751C
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#956F68
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a7827;
/* rgb */ color: rgb(138, 120, 39);
/* oklch */ color: oklch(57.4% 0.101 96.4);
Tailwind
colors: {
  custom: {
    50: '#af9e66',
    500: '#8a7827',
    950: '#000000',
  },
}
SCSS
$custom: #8a7827;
$custom-light: #af9e66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7827",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 39
  },
  "hsl": {
    "h": 49.091,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57388,
    "c": 0.10119,
    "h": 96.4
  },
  "luminance": 0.18983
}

Semantic roles & 50–950 ramp

primary
#8A7827
secondary
#5768B6
accent
#64DF49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7827

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

Preview Lab → · Contrast checker → · Palette generator →

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