#8F851B#8F851B

#8F851B is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.7% C 0.119 H 103.7°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8F851B
RGBrgb(143, 133, 27)
HSLhsl(55, 68%, 33%)
HSVhsv(55, 81%, 56%)
CMYKcmyk(0%, 7%, 81.1%, 43.9%)
CIE-LABlab(54.76, -8.02, 53.53)
CIE-LCHlch(54.76, 54.12, 98.52°)
OKLaboklab(60.72% -0.0282 0.1161)
OKLCHoklch(60.72% 0.119 103.7)
XYZxyz(19.9140, 22.6947, 4.3683)
Luminance0.2269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F851B #1B258F
analogous
#8F4B1B #8F851B #5F8F1B
triadic
#8F851B #1B8F85 #851B8F
tetradic
#8F851B #1B8F4B #1B258F #8F1B5F
square
#8F851B #1B8F4B #1B258F #8F1B5F
split-complementary
#8F851B #1B5F8F #4B1B8F
monochromatic
#282508 #5C5511 #8F851B #C2B525 #DCD048

Accessibility & contrast

On white

3.79
#8F851B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#8F851B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F851B
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F851B#FFFFFF#000000##000000
##8F851B1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f851b;
/* rgb */ color: rgb(143, 133, 27);
/* oklch */ color: oklch(60.7% 0.119 103.7);
Tailwind
colors: {
  custom: {
    50: '#b3a862',
    500: '#8f851b',
    950: '#000000',
  },
}
SCSS
$custom: #8f851b;
$custom-light: #b3a862;
$custom-dark: #000000;
JSON
{
  "hex": "#8f851b",
  "rgb": {
    "r": 143,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 54.828,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60723,
    "c": 0.11947,
    "h": 103.7
  },
  "luminance": 0.22694
}

Semantic roles & 50–950 ramp

primary
#8F851B
secondary
#4852BE
accent
#4CEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #8F851B

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

Preview Lab → · Contrast checker → · Palette generator →

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