#8D841F#8D841F

#8D841F is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.3% C 0.117 H 104.1°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8D841F
RGBrgb(141, 132, 31)
HSLhsl(55, 64%, 34%)
HSVhsv(55, 78%, 55%)
CMYKcmyk(0%, 6.4%, 78%, 44.7%)
CIE-LABlab(54.31, -8.23, 51.73)
CIE-LCHlch(54.31, 52.38, 99.04°)
OKLaboklab(60.33% -0.0284 0.1131)
OKLCHoklch(60.33% 0.117 104.1)
XYZxyz(19.4840, 22.2650, 4.5673)
Luminance0.2226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D841F #1F288D
analogous
#8D4D1F #8D841F #5F8D1F
triadic
#8D841F #1F8D84 #841F8D
tetradic
#8D841F #1F8D4D #1F288D #8D1F5F
square
#8D841F #1F8D4D #1F288D #8D1F5F
split-complementary
#8D841F #1F5F8D #4D1F8D
monochromatic
#292609 #5B5514 #8D841F #BFB32A #D8CD4E

Accessibility & contrast

On white

3.85
#8D841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#8D841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D841F
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D841F#FFFFFF#000000##000000
##8D841F1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#938427
Tritanopia (blue-blind)
#987A71
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8d841f;
/* rgb */ color: rgb(141, 132, 31);
/* oklch */ color: oklch(60.3% 0.117 104.1);
Tailwind
colors: {
  custom: {
    50: '#b2a764',
    500: '#8d841f',
    950: '#000000',
  },
}
SCSS
$custom: #8d841f;
$custom-light: #b2a764;
$custom-dark: #000000;
JSON
{
  "hex": "#8d841f",
  "rgb": {
    "r": 141,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 55.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60328,
    "c": 0.11663,
    "h": 104.1
  },
  "luminance": 0.22264
}

Semantic roles & 50–950 ramp

primary
#8D841F
secondary
#4D56BB
accent
#4EE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D841F

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

Preview Lab → · Contrast checker → · Palette generator →

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