#8A7B27#8A7B27

#8A7B27 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.1% C 0.104 H 98.9°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A7B27
RGBrgb(138, 123, 39)
HSLhsl(51, 56%, 35%)
HSVhsv(51, 72%, 54%)
CMYKcmyk(0%, 10.9%, 71.7%, 45.9%)
CIE-LABlab(51.52, -4.25, 45.85)
CIE-LCHlch(51.52, 46.05, 95.29°)
OKLaboklab(58.06% -0.0161 0.1024)
OKLCHoklch(58.06% 0.104 98.9)
XYZxyz(17.9312, 19.7165, 4.7802)
Luminance0.1972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B27 #27368A
analogous
#8A4A27 #8A7B27 #688A27
triadic
#8A7B27 #278A7B #7B278A
tetradic
#8A7B27 #278A4A #27368A #8A2768
square
#8A7B27 #278A4A #27368A #8A2768
split-complementary
#8A7B27 #27688A #4A278A
monochromatic
#2B260C #5A501A #8A7B27 #BAA634 #D1BF5B

Accessibility & contrast

On white

4.25
#8A7B27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#8A7B27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B27
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B27#FFFFFF#000000##000000
##8A7B271.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#87781B
Deuteranopia (green-blind)
#8B7D2C
Tritanopia (blue-blind)
#95726A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b27;
/* rgb */ color: rgb(138, 123, 39);
/* oklch */ color: oklch(58.1% 0.104 98.9);
Tailwind
colors: {
  custom: {
    50: '#afa067',
    500: '#8a7b27',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b27;
$custom-light: #afa067;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b27",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 39
  },
  "hsl": {
    "h": 50.909,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.5806,
    "c": 0.10362,
    "h": 98.9
  },
  "luminance": 0.19716
}

Semantic roles & 50–950 ramp

primary
#8A7B27
secondary
#5765B6
accent
#5FDF49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7B27

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

Preview Lab → · Contrast checker → · Palette generator →

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