#8D8A2F#8D8A2F

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

Color values

HEX#8D8A2F
RGBrgb(141, 138, 47)
HSLhsl(58, 50%, 37%)
HSVhsv(58, 67%, 55%)
CMYKcmyk(0%, 2.1%, 66.7%, 44.7%)
CIE-LABlab(56.13, -10.64, 47.24)
CIE-LCHlch(56.13, 48.42, 102.70°)
OKLaboklab(61.82% -0.0335 0.1066)
OKLCHoklch(61.82% 0.112 107.4)
XYZxyz(20.5868, 24.0456, 6.2456)
Luminance0.2404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8A2F #2F328D
analogous
#8D5B2F #8D8A2F #618D2F
triadic
#8D8A2F #2F8D8A #8A2F8D
tetradic
#8D8A2F #2F8D5B #2F328D #8D2F61
square
#8D8A2F #2F8D5B #2F328D #8D2F61
split-complementary
#8D8A2F #2F618D #5B2F8D
monochromatic
#313010 #5F5D20 #8D8A2F #BBB73E #CDCA69

Accessibility & contrast

On white

3.62
#8D8A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D8A2F#FFFFFF#000000##000000
##8D8A2F1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958523
Deuteranopia (green-blind)
#978835
Tritanopia (blue-blind)
#978177
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8d8a2f;
/* rgb */ color: rgb(141, 138, 47);
/* oklch */ color: oklch(61.8% 0.112 107.4);
Tailwind
colors: {
  custom: {
    50: '#b1ab6d',
    500: '#8d8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #8d8a2f;
$custom-light: #b1ab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8a2f",
  "rgb": {
    "r": 141,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 58.085,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61817,
    "c": 0.11173,
    "h": 107.4
  },
  "luminance": 0.24045
}

Semantic roles & 50–950 ramp

primary
#8D8A2F
secondary
#6466B4
accent
#53DA4E
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8D8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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