#8A7A27#8A7A27

#8A7A27 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.8% C 0.103 H 98.1°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A7A27
RGBrgb(138, 122, 39)
HSLhsl(50, 56%, 35%)
HSVhsv(50, 72%, 54%)
CMYKcmyk(0%, 11.6%, 71.7%, 45.9%)
CIE-LABlab(51.23, -3.69, 45.57)
CIE-LCHlch(51.23, 45.71, 94.63°)
OKLaboklab(57.84% -0.0145 0.1018)
OKLCHoklch(57.84% 0.103 98.1)
XYZxyz(17.8078, 19.4697, 4.7391)
Luminance0.1947 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A27 #27378A
analogous
#8A4927 #8A7A27 #698A27
triadic
#8A7A27 #278A7A #7A278A
tetradic
#8A7A27 #278A49 #27378A #8A2769
square
#8A7A27 #278A49 #27378A #8A2769
split-complementary
#8A7A27 #27698A #49278A
monochromatic
#2B260C #5A501A #8A7A27 #BAA434 #D1BE5B

Accessibility & contrast

On white

4.29
#8A7A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8A7A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7A27
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7A27#FFFFFF#000000##000000
##8A7A271.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#86771B
Deuteranopia (green-blind)
#8B7C2C
Tritanopia (blue-blind)
#957169
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7a27;
/* rgb */ color: rgb(138, 122, 39);
/* oklch */ color: oklch(57.8% 0.103 98.1);
Tailwind
colors: {
  custom: {
    50: '#afa066',
    500: '#8a7a27',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a27;
$custom-light: #afa066;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a27",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 39
  },
  "hsl": {
    "h": 50.303,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57835,
    "c": 0.10279,
    "h": 98.1
  },
  "luminance": 0.19469
}

Semantic roles & 50–950 ramp

primary
#8A7A27
secondary
#5766B6
accent
#61DF49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7A27

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

Preview Lab → · Contrast checker → · Palette generator →

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