#8A9131#8A9131

#8A9131 is a light, moderate yellow. Relative luminance 0.259; OKLCH L 63.2% C 0.119 H 113.3°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8A9131
RGBrgb(138, 145, 49)
HSLhsl(64, 49%, 38%)
HSVhsv(64, 66%, 57%)
CMYKcmyk(4.8%, 0%, 66.2%, 43.1%)
CIE-LABlab(57.92, -15.57, 48.16)
CIE-LCHlch(57.92, 50.61, 107.92°)
OKLaboklab(63.19% -0.0469 0.109)
OKLCHoklch(63.19% 0.119 113.3)
XYZxyz(21.1616, 25.8762, 6.7850)
Luminance0.2588 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9131 #383191
analogous
#916831 #8A9131 #5A9131
triadic
#8A9131 #318A91 #91318A
tetradic
#8A9131 #319168 #383191 #91315A
square
#8A9131 #319168 #383191 #91315A
split-complementary
#8A9131 #315A91 #683191
monochromatic
#333612 #5E6322 #8A9131 #B5BF41 #C7CE6E

Accessibility & contrast

On white

3.40
#8A9131 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#8A9131 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9131
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9131#FFFFFF#000000##000000
##8A91311.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A24
Deuteranopia (green-blind)
#9B8C38
Tritanopia (blue-blind)
#93887D
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a9131;
/* rgb */ color: rgb(138, 145, 49);
/* oklch */ color: oklch(63.2% 0.119 113.3);
Tailwind
colors: {
  custom: {
    50: '#afb16e',
    500: '#8a9131',
    950: '#000000',
  },
}
SCSS
$custom: #8a9131;
$custom-light: #afb16e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9131",
  "rgb": {
    "r": 138,
    "g": 145,
    "b": 49
  },
  "hsl": {
    "h": 64.375,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.63187,
    "c": 0.11863,
    "h": 113.3
  },
  "luminance": 0.25876
}

Semantic roles & 50–950 ramp

primary
#8A9131
secondary
#6E68B6
accent
#4FD959
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A9131

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

Preview Lab → · Contrast checker → · Palette generator →

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