#8A7D27#8A7D27

#8A7D27 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.5% C 0.105 H 100.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A7D27
RGBrgb(138, 125, 39)
HSLhsl(52, 56%, 35%)
HSVhsv(52, 72%, 54%)
CMYKcmyk(0%, 9.4%, 71.7%, 45.9%)
CIE-LABlab(52.08, -5.36, 46.42)
CIE-LCHlch(52.08, 46.73, 96.59°)
OKLaboklab(58.51% -0.0192 0.1036)
OKLCHoklch(58.51% 0.105 100.5)
XYZxyz(18.1819, 20.2178, 4.8638)
Luminance0.2022 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D27 #27348A
analogous
#8A4B27 #8A7D27 #668A27
triadic
#8A7D27 #278A7D #7D278A
tetradic
#8A7D27 #278A4B #27348A #8A2766
square
#8A7D27 #278A4B #27348A #8A2766
split-complementary
#8A7D27 #27668A #4B278A
monochromatic
#2B270C #5A521A #8A7D27 #BAA834 #D1C15B

Accessibility & contrast

On white

4.16
#8A7D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8A7D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D27
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D27#FFFFFF#000000##000000
##8A7D271.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#89791A
Deuteranopia (green-blind)
#8D7E2C
Tritanopia (blue-blind)
#95746C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d27;
/* rgb */ color: rgb(138, 125, 39);
/* oklch */ color: oklch(58.5% 0.105 100.5);
Tailwind
colors: {
  custom: {
    50: '#afa267',
    500: '#8a7d27',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d27;
$custom-light: #afa267;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d27",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 39
  },
  "hsl": {
    "h": 52.121,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.5851,
    "c": 0.10534,
    "h": 100.5
  },
  "luminance": 0.20217
}

Semantic roles & 50–950 ramp

primary
#8A7D27
secondary
#5764B6
accent
#5CDF49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7D27

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

Preview Lab → · Contrast checker → · Palette generator →

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