#8A8D31#8A8D31

#8A8D31 is a light, moderate yellow. Relative luminance 0.247; OKLCH L 62.3% C 0.114 H 111.1°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A8D31
RGBrgb(138, 141, 49)
HSLhsl(62, 48%, 37%)
HSVhsv(62, 65%, 55%)
CMYKcmyk(2.1%, 0%, 65.2%, 44.7%)
CIE-LABlab(56.76, -13.46, 46.94)
CIE-LCHlch(56.76, 48.83, 106.00°)
OKLaboklab(62.26% -0.041 0.1064)
OKLCHoklch(62.26% 0.114 111.1)
XYZxyz(20.5611, 24.6753, 6.5848)
Luminance0.2467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D31 #34318D
analogous
#8D6231 #8A8D31 #5C8D31
triadic
#8A8D31 #318A8D #8D318A
tetradic
#8A8D31 #318D62 #34318D #8D315C
square
#8A8D31 #318D62 #34318D #8D315C
split-complementary
#8A8D31 #315C8D #62318D
monochromatic
#313211 #5E6021 #8A8D31 #B6BA41 #C9CC6C

Accessibility & contrast

On white

3.54
#8A8D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#8A8D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D31
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D31#FFFFFF#000000##000000
##8A8D311.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988725
Deuteranopia (green-blind)
#988937
Tritanopia (blue-blind)
#93847A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d31;
/* rgb */ color: rgb(138, 141, 49);
/* oklch */ color: oklch(62.3% 0.114 111.1);
Tailwind
colors: {
  custom: {
    50: '#afae6e',
    500: '#8a8d31',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d31;
$custom-light: #afae6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d31",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 61.957,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62258,
    "c": 0.11401,
    "h": 111.1
  },
  "luminance": 0.24675
}

Semantic roles & 50–950 ramp

primary
#8A8D31
secondary
#6966B4
accent
#50D854
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8D31

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

Preview Lab → · Contrast checker → · Palette generator →

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