#8A8127#8A8127

#8A8127 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.4% C 0.109 H 103.5°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A8127
RGBrgb(138, 129, 39)
HSLhsl(55, 56%, 35%)
HSVhsv(55, 72%, 54%)
CMYKcmyk(0%, 6.5%, 71.7%, 45.9%)
CIE-LABlab(53.22, -7.58, 47.56)
CIE-LCHlch(53.22, 48.16, 99.05°)
OKLaboklab(59.42% -0.0255 0.106)
OKLCHoklch(59.42% 0.109 103.5)
XYZxyz(18.6985, 21.2510, 5.0360)
Luminance0.2125 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8127 #27308A
analogous
#8A4F27 #8A8127 #628A27
triadic
#8A8127 #278A81 #81278A
tetradic
#8A8127 #278A4F #27308A #8A2762
square
#8A8127 #278A4F #27308A #8A2762
split-complementary
#8A8127 #27628A #4F278A
monochromatic
#2B280C #5A541A #8A8127 #BAAE34 #D1C65B

Accessibility & contrast

On white

4.00
#8A8127 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#8A8127 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8127
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8127#FFFFFF#000000##000000
##8A81271.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D19
Deuteranopia (green-blind)
#90812D
Tritanopia (blue-blind)
#95786F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a8127;
/* rgb */ color: rgb(138, 129, 39);
/* oklch */ color: oklch(59.4% 0.109 103.5);
Tailwind
colors: {
  custom: {
    50: '#afa567',
    500: '#8a8127',
    950: '#000000',
  },
}
SCSS
$custom: #8a8127;
$custom-light: #afa567;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8127",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 39
  },
  "hsl": {
    "h": 54.545,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59416,
    "c": 0.109,
    "h": 103.5
  },
  "luminance": 0.2125
}

Semantic roles & 50–950 ramp

primary
#8A8127
secondary
#5760B6
accent
#56DF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8127

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

Preview Lab → · Contrast checker → · Palette generator →

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