#8D8A31#8D8A31

#8D8A31 is a mid, moderate yellow. Relative luminance 0.241; OKLCH L 61.8% C 0.110 H 107.4°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8D8A31
RGBrgb(141, 138, 49)
HSLhsl(58, 48%, 37%)
HSVhsv(58, 65%, 55%)
CMYKcmyk(0%, 2.1%, 65.2%, 44.7%)
CIE-LABlab(56.15, -10.51, 46.38)
CIE-LCHlch(56.15, 47.56, 102.77°)
OKLaboklab(61.84% -0.0329 0.1051)
OKLCHoklch(61.84% 0.11 107.4)
XYZxyz(20.6281, 24.0621, 6.4630)
Luminance0.2406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8A31 #31348D
analogous
#8D5C31 #8D8A31 #628D31
triadic
#8D8A31 #318D8A #8A318D
tetradic
#8D8A31 #318D5C #31348D #8D3162
square
#8D8A31 #318D5C #31348D #8D3162
split-complementary
#8D8A31 #31628D #5C318D
monochromatic
#323111 #605E21 #8D8A31 #BAB641 #CCC96C

Accessibility & contrast

On white

3.61
#8D8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8D8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8A31
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8A31#FFFFFF#000000##000000
##8D8A311.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958526
Deuteranopia (green-blind)
#978836
Tritanopia (blue-blind)
#978178
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8d8a31;
/* rgb */ color: rgb(141, 138, 49);
/* oklch */ color: oklch(61.8% 0.110 107.4);
Tailwind
colors: {
  custom: {
    50: '#b1ab6e',
    500: '#8d8a31',
    950: '#000000',
  },
}
SCSS
$custom: #8d8a31;
$custom-light: #b1ab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8a31",
  "rgb": {
    "r": 141,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 58.043,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.61836,
    "c": 0.11014,
    "h": 107.4
  },
  "luminance": 0.24061
}

Semantic roles & 50–950 ramp

primary
#8D8A31
secondary
#6669B4
accent
#54D850
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8D8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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