#8A8B31#8A8B31

#8A8B31 is a mid, moderate yellow. Relative luminance 0.241; OKLCH L 61.8% C 0.112 H 109.9°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8A8B31
RGBrgb(138, 139, 49)
HSLhsl(61, 48%, 37%)
HSVhsv(61, 65%, 55%)
CMYKcmyk(0.7%, 0%, 64.7%, 45.5%)
CIE-LABlab(56.18, -12.39, 46.33)
CIE-LCHlch(56.18, 47.96, 104.97°)
OKLaboklab(61.8% -0.038 0.1051)
OKLCHoklch(61.8% 0.112 109.9)
XYZxyz(20.2689, 24.0908, 6.4874)
Luminance0.2409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B31 #32318B
analogous
#8B5F31 #8A8B31 #5D8B31
triadic
#8A8B31 #318A8B #8B318A
tetradic
#8A8B31 #318B5F #32318B #8B315D
square
#8A8B31 #318B5F #32318B #8B315D
split-complementary
#8A8B31 #315D8B #5F318B
monochromatic
#303111 #5D5E21 #8A8B31 #B7B841 #CACB6B

Accessibility & contrast

On white

3.61
#8A8B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#8A8B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8B31
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8B31#FFFFFF#000000##000000
##8A8B311.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968525
Deuteranopia (green-blind)
#978837
Tritanopia (blue-blind)
#938278
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8b31;
/* rgb */ color: rgb(138, 139, 49);
/* oklch */ color: oklch(61.8% 0.112 109.9);
Tailwind
colors: {
  custom: {
    50: '#afac6e',
    500: '#8a8b31',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b31;
$custom-light: #afac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b31",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 49
  },
  "hsl": {
    "h": 60.667,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61796,
    "c": 0.11176,
    "h": 109.9
  },
  "luminance": 0.2409
}

Semantic roles & 50–950 ramp

primary
#8A8B31
secondary
#6665B2
accent
#50D752
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8B31

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

Preview Lab → · Contrast checker → · Palette generator →

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