#8D862F#8D862F

#8D862F is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.9% C 0.108 H 104.7°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8D862F
RGBrgb(141, 134, 47)
HSLhsl(56, 50%, 37%)
HSVhsv(56, 67%, 55%)
CMYKcmyk(0%, 5%, 66.7%, 44.7%)
CIE-LABlab(54.99, -8.47, 46.04)
CIE-LCHlch(54.99, 46.82, 100.43°)
OKLaboklab(60.91% -0.0273 0.1041)
OKLCHoklch(60.91% 0.108 104.7)
XYZxyz(20.0234, 22.9189, 6.0578)
Luminance0.2292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D862F #2F368D
analogous
#8D572F #8D862F #658D2F
triadic
#8D862F #2F8D86 #862F8D
tetradic
#8D862F #2F8D57 #2F368D #8D2F65
square
#8D862F #2F8D57 #2F368D #8D2F65
split-complementary
#8D862F #2F658D #572F8D
monochromatic
#312F10 #5F5A20 #8D862F #BBB23E #CDC669

Accessibility & contrast

On white

3.76
#8D862F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#8D862F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D862F
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D862F#FFFFFF#000000##000000
##8D862F1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928124
Deuteranopia (green-blind)
#948534
Tritanopia (blue-blind)
#977D74
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8d862f;
/* rgb */ color: rgb(141, 134, 47);
/* oklch */ color: oklch(60.9% 0.108 104.7);
Tailwind
colors: {
  custom: {
    50: '#b1a96c',
    500: '#8d862f',
    950: '#000000',
  },
}
SCSS
$custom: #8d862f;
$custom-light: #b1a96c;
$custom-dark: #000000;
JSON
{
  "hex": "#8d862f",
  "rgb": {
    "r": 141,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 55.532,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60906,
    "c": 0.10761,
    "h": 104.7
  },
  "luminance": 0.22918
}

Semantic roles & 50–950 ramp

primary
#8D862F
secondary
#646AB4
accent
#59DA4E
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8D862F

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

Preview Lab → · Contrast checker → · Palette generator →

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