#8A8631#8A8631

#8A8631 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.6% C 0.106 H 106.6°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8A8631
RGBrgb(138, 134, 49)
HSLhsl(57, 48%, 37%)
HSVhsv(57, 64%, 54%)
CMYKcmyk(0%, 2.9%, 64.5%, 45.9%)
CIE-LABlab(54.74, -9.70, 44.80)
CIE-LCHlch(54.74, 45.84, 102.21°)
OKLaboklab(60.65% -0.0304 0.1019)
OKLCHoklch(60.65% 0.106 106.6)
XYZxyz(19.5614, 22.6759, 6.2516)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8631 #31358A
analogous
#8A5A31 #8A8631 #628A31
triadic
#8A8631 #318A86 #86318A
tetradic
#8A8631 #318A5A #31358A #8A3162
square
#8A8631 #318A5A #31358A #8A3162
split-complementary
#8A8631 #31628A #5A318A
monochromatic
#302E11 #5D5A21 #8A8631 #B7B241 #CAC66B

Accessibility & contrast

On white

3.79
#8A8631 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#8A8631 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8631
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8631#FFFFFF#000000##000000
##8A86311.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#918127
Deuteranopia (green-blind)
#938536
Tritanopia (blue-blind)
#947D74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8631;
/* rgb */ color: rgb(138, 134, 49);
/* oklch */ color: oklch(60.6% 0.106 106.6);
Tailwind
colors: {
  custom: {
    50: '#afa96d',
    500: '#8a8631',
    950: '#000000',
  },
}
SCSS
$custom: #8a8631;
$custom-light: #afa96d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8631",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 49
  },
  "hsl": {
    "h": 57.303,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60646,
    "c": 0.1063,
    "h": 106.6
  },
  "luminance": 0.22675
}

Semantic roles & 50–950 ramp

primary
#8A8631
secondary
#6568B2
accent
#57D751
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A8631

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

Preview Lab → · Contrast checker → · Palette generator →

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