#8A8F31#8A8F31

#8A8F31 is a light, moderate yellow. Relative luminance 0.253; OKLCH L 62.7% C 0.116 H 112.2°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8A8F31
RGBrgb(138, 143, 49)
HSLhsl(63, 49%, 38%)
HSVhsv(63, 66%, 56%)
CMYKcmyk(3.5%, 0%, 65.7%, 43.9%)
CIE-LABlab(57.34, -14.52, 47.55)
CIE-LCHlch(57.34, 49.72, 106.98°)
OKLaboklab(62.72% -0.044 0.1077)
OKLCHoklch(62.72% 0.116 112.2)
XYZxyz(20.8587, 25.2704, 6.6840)
Luminance0.2527 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F31 #36318F
analogous
#8F6531 #8A8F31 #5B8F31
triadic
#8A8F31 #318A8F #8F318A
tetradic
#8A8F31 #318F65 #36318F #8F315B
square
#8A8F31 #318F65 #36318F #8F315B
split-complementary
#8A8F31 #315B8F #65318F
monochromatic
#323412 #5E6121 #8A8F31 #B6BD41 #C8CD6D

Accessibility & contrast

On white

3.47
#8A8F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#8A8F31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F31
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F31#FFFFFF#000000##000000
##8A8F311.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8825
Deuteranopia (green-blind)
#9A8B37
Tritanopia (blue-blind)
#93867C
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a8f31;
/* rgb */ color: rgb(138, 143, 49);
/* oklch */ color: oklch(62.7% 0.116 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf6e',
    500: '#8a8f31',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f31;
$custom-light: #afaf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f31",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 49
  },
  "hsl": {
    "h": 63.191,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.62722,
    "c": 0.11631,
    "h": 112.2
  },
  "luminance": 0.2527
}

Semantic roles & 50–950 ramp

primary
#8A8F31
secondary
#6B67B5
accent
#4FD957
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8F31

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

Preview Lab → · Contrast checker → · Palette generator →

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