#8A8A31#8A8A31

#8A8A31 is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.6% C 0.111 H 109.3°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A8A31
RGBrgb(138, 138, 49)
HSLhsl(60, 48%, 37%)
HSVhsv(60, 64%, 54%)
CMYKcmyk(0%, 0%, 64.5%, 45.9%)
CIE-LABlab(55.89, -11.86, 46.03)
CIE-LCHlch(55.89, 47.53, 104.45°)
OKLaboklab(61.57% -0.0365 0.1045)
OKLCHoklch(61.57% 0.111 109.3)
XYZxyz(20.1247, 23.8025, 6.4394)
Luminance0.2380 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A31 #31318A
analogous
#8A5E31 #8A8A31 #5E8A31
triadic
#8A8A31 #318A8A #8A318A
tetradic
#8A8A31 #318A5E #31318A #8A315E
square
#8A8A31 #318A5E #31318A #8A315E
split-complementary
#8A8A31 #315E8A #5E318A
monochromatic
#303011 #5D5D21 #8A8A31 #B7B741 #CACA6B

Accessibility & contrast

On white

3.65
#8A8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#8A8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A31
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A31#FFFFFF#000000##000000
##8A8A311.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#958426
Deuteranopia (green-blind)
#968737
Tritanopia (blue-blind)
#948178
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a31;
/* rgb */ color: rgb(138, 138, 49);
/* oklch */ color: oklch(61.6% 0.111 109.3);
Tailwind
colors: {
  custom: {
    50: '#afac6e',
    500: '#8a8a31',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a31;
$custom-light: #afac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a31",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 60,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61565,
    "c": 0.11064,
    "h": 109.3
  },
  "luminance": 0.23802
}

Semantic roles & 50–950 ramp

primary
#8A8A31
secondary
#6565B2
accent
#51D751
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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