#8A8E31#8A8E31

#8A8E31 is a light, moderate yellow. Relative luminance 0.250; OKLCH L 62.5% C 0.115 H 111.7°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8A8E31
RGBrgb(138, 142, 49)
HSLhsl(63, 49%, 37%)
HSVhsv(63, 65%, 56%)
CMYKcmyk(2.8%, 0%, 65.5%, 44.3%)
CIE-LABlab(57.05, -13.99, 47.24)
CIE-LCHlch(57.05, 49.27, 106.50°)
OKLaboklab(62.49% -0.0425 0.107)
OKLCHoklch(62.49% 0.115 111.7)
XYZxyz(20.7092, 24.9715, 6.6342)
Luminance0.2497 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E31 #35318E
analogous
#8E6431 #8A8E31 #5B8E31
triadic
#8A8E31 #318A8E #8E318A
tetradic
#8A8E31 #318E64 #35318E #8E315B
square
#8A8E31 #318E64 #35318E #8E315B
split-complementary
#8A8E31 #315B8E #64318E
monochromatic
#323312 #5E6121 #8A8E31 #B6BB41 #C8CD6D

Accessibility & contrast

On white

3.50
#8A8E31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#8A8E31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E31
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E31#FFFFFF#000000##000000
##8A8E311.003.505.995.99
#FFFFFF3.501.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#998825
Deuteranopia (green-blind)
#998A37
Tritanopia (blue-blind)
#93857B
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e31;
/* rgb */ color: rgb(138, 142, 49);
/* oklch */ color: oklch(62.5% 0.115 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae6e',
    500: '#8a8e31',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e31;
$custom-light: #afae6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e31",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 49
  },
  "hsl": {
    "h": 62.581,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.6249,
    "c": 0.11516,
    "h": 111.7
  },
  "luminance": 0.24971
}

Semantic roles & 50–950 ramp

primary
#8A8E31
secondary
#6A67B4
accent
#50D855
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8E31

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

Preview Lab → · Contrast checker → · Palette generator →

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