#8C851F#8C851F

#8C851F is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.5% C 0.118 H 105.3°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8C851F
RGBrgb(140, 133, 31)
HSLhsl(56, 64%, 34%)
HSVhsv(56, 78%, 55%)
CMYKcmyk(0%, 5%, 77.9%, 45.1%)
CIE-LABlab(54.50, -9.24, 51.87)
CIE-LCHlch(54.50, 52.69, 100.10°)
OKLaboklab(60.46% -0.0311 0.1135)
OKLCHoklch(60.46% 0.118 105.3)
XYZxyz(19.4509, 22.4502, 4.6048)
Luminance0.2245 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C851F #1F268C
analogous
#8C4E1F #8C851F #5C8C1F
triadic
#8C851F #1F8C85 #851F8C
tetradic
#8C851F #1F8C4E #1F268C #8C1F5C
square
#8C851F #1F8C4E #1F268C #8C1F5C
split-complementary
#8C851F #1F5C8C #4E1F8C
monochromatic
#282609 #5A5514 #8C851F #BEB52A #D8CF4E

Accessibility & contrast

On white

3.83
#8C851F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#8C851F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C851F
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C851F#FFFFFF#000000##000000
##8C851F1.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#918007
Deuteranopia (green-blind)
#948427
Tritanopia (blue-blind)
#977B72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8c851f;
/* rgb */ color: rgb(140, 133, 31);
/* oklch */ color: oklch(60.5% 0.118 105.3);
Tailwind
colors: {
  custom: {
    50: '#b1a864',
    500: '#8c851f',
    950: '#000000',
  },
}
SCSS
$custom: #8c851f;
$custom-light: #b1a864;
$custom-dark: #000000;
JSON
{
  "hex": "#8c851f",
  "rgb": {
    "r": 140,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 56.147,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60461,
    "c": 0.11768,
    "h": 105.3
  },
  "luminance": 0.22449
}

Semantic roles & 50–950 ramp

primary
#8C851F
secondary
#4C53BB
accent
#4CE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8C851F

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

Preview Lab → · Contrast checker → · Palette generator →

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