#8A7E27#8A7E27

#8A7E27 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.7% C 0.106 H 101.3°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A7E27
RGBrgb(138, 126, 39)
HSLhsl(53, 56%, 35%)
HSVhsv(53, 72%, 54%)
CMYKcmyk(0%, 8.7%, 71.7%, 45.9%)
CIE-LABlab(52.37, -5.92, 46.71)
CIE-LCHlch(52.37, 47.08, 97.22°)
OKLaboklab(58.74% -0.0208 0.1042)
OKLCHoklch(58.74% 0.106 101.3)
XYZxyz(18.3091, 20.4723, 4.9062)
Luminance0.2047 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E27 #27338A
analogous
#8A4C27 #8A7E27 #658A27
triadic
#8A7E27 #278A7E #7E278A
tetradic
#8A7E27 #278A4C #27338A #8A2765
square
#8A7E27 #278A4C #27338A #8A2765
split-complementary
#8A7E27 #27658A #4C278A
monochromatic
#2B270C #5A521A #8A7E27 #BAAA34 #D1C25B

Accessibility & contrast

On white

4.12
#8A7E27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8A7E27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E27
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E27#FFFFFF#000000##000000
##8A7E271.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1A
Deuteranopia (green-blind)
#8D7F2C
Tritanopia (blue-blind)
#95756D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e27;
/* rgb */ color: rgb(138, 126, 39);
/* oklch */ color: oklch(58.7% 0.106 101.3);
Tailwind
colors: {
  custom: {
    50: '#afa367',
    500: '#8a7e27',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e27;
$custom-light: #afa367;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e27",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 39
  },
  "hsl": {
    "h": 52.727,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58735,
    "c": 0.10623,
    "h": 101.3
  },
  "luminance": 0.20471
}

Semantic roles & 50–950 ramp

primary
#8A7E27
secondary
#5763B6
accent
#5BDF49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7E27

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

Preview Lab → · Contrast checker → · Palette generator →

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