#8E851B#8E851B

#8E851B is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.6% C 0.120 H 104.3°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8E851B
RGBrgb(142, 133, 27)
HSLhsl(55, 68%, 33%)
HSVhsv(55, 81%, 56%)
CMYKcmyk(0%, 6.3%, 81%, 44.3%)
CIE-LABlab(54.66, -8.48, 53.41)
CIE-LCHlch(54.66, 54.08, 99.02°)
OKLaboklab(60.63% -0.0295 0.1159)
OKLCHoklch(60.63% 0.12 104.3)
XYZxyz(19.7416, 22.6058, 4.3602)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E851B #1B248E
analogous
#8E4B1B #8E851B #5D8E1B
triadic
#8E851B #1B8E85 #851B8E
tetradic
#8E851B #1B8E4B #1B248E #8E1B5D
square
#8E851B #1B8E4B #1B248E #8E1B5D
split-complementary
#8E851B #1B5D8E #4B1B8E
monochromatic
#272507 #5B5511 #8E851B #C1B525 #DCD047

Accessibility & contrast

On white

3.80
#8E851B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#8E851B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E851B
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E851B#FFFFFF#000000##000000
##8E851B1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#958524
Tritanopia (blue-blind)
#997B72
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8e851b;
/* rgb */ color: rgb(142, 133, 27);
/* oklch */ color: oklch(60.6% 0.120 104.3);
Tailwind
colors: {
  custom: {
    50: '#b3a862',
    500: '#8e851b',
    950: '#000000',
  },
}
SCSS
$custom: #8e851b;
$custom-light: #b3a862;
$custom-dark: #000000;
JSON
{
  "hex": "#8e851b",
  "rgb": {
    "r": 142,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 55.304,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60628,
    "c": 0.11957,
    "h": 104.3
  },
  "luminance": 0.22605
}

Semantic roles & 50–950 ramp

primary
#8E851B
secondary
#4750BE
accent
#4BEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E851B

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

Preview Lab → · Contrast checker → · Palette generator →

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