#8D851F#8D851F

#8D851F is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.6% C 0.118 H 104.7°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8D851F
RGBrgb(141, 133, 31)
HSLhsl(56, 64%, 34%)
HSVhsv(56, 78%, 55%)
CMYKcmyk(0%, 5.7%, 78%, 44.7%)
CIE-LABlab(54.59, -8.78, 51.99)
CIE-LCHlch(54.59, 52.73, 99.58°)
OKLaboklab(60.56% -0.0299 0.1137)
OKLCHoklch(60.56% 0.118 104.7)
XYZxyz(19.6202, 22.5375, 4.6127)
Luminance0.2254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D851F #1F278D
analogous
#8D4E1F #8D851F #5E8D1F
triadic
#8D851F #1F8D85 #851F8D
tetradic
#8D851F #1F8D4E #1F278D #8D1F5E
square
#8D851F #1F8D4E #1F278D #8D1F5E
split-complementary
#8D851F #1F5E8D #4E1F8D
monochromatic
#292609 #5B5614 #8D851F #BFB42A #D8CE4E

Accessibility & contrast

On white

3.81
#8D851F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#8D851F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D851F
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D851F#FFFFFF#000000##000000
##8D851F1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#918007
Deuteranopia (green-blind)
#948527
Tritanopia (blue-blind)
#987B72
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8d851f;
/* rgb */ color: rgb(141, 133, 31);
/* oklch */ color: oklch(60.6% 0.118 104.7);
Tailwind
colors: {
  custom: {
    50: '#b2a864',
    500: '#8d851f',
    950: '#000000',
  },
}
SCSS
$custom: #8d851f;
$custom-light: #b2a864;
$custom-dark: #000000;
JSON
{
  "hex": "#8d851f",
  "rgb": {
    "r": 141,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 55.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60555,
    "c": 0.11756,
    "h": 104.7
  },
  "luminance": 0.22537
}

Semantic roles & 50–950 ramp

primary
#8D851F
secondary
#4D55BB
accent
#4DE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D851F

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

Preview Lab → · Contrast checker → · Palette generator →

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