#8F841F#8F841F

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

Color values

HEX#8F841F
RGBrgb(143, 132, 31)
HSLhsl(54, 64%, 34%)
HSVhsv(54, 78%, 56%)
CMYKcmyk(0%, 7.7%, 78.3%, 43.9%)
CIE-LABlab(54.49, -7.31, 51.97)
CIE-LCHlch(54.49, 52.48, 98.01°)
OKLaboklab(60.52% -0.0259 0.1136)
OKLCHoklch(60.52% 0.116 102.8)
XYZxyz(19.8272, 22.4420, 4.5834)
Luminance0.2244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F841F #1F2A8F
analogous
#8F4C1F #8F841F #628F1F
triadic
#8F841F #1F8F84 #841F8F
tetradic
#8F841F #1F8F4C #1F2A8F #8F1F62
square
#8F841F #1F8F4C #1F2A8F #8F1F62
split-complementary
#8F841F #1F628F #4C1F8F
monochromatic
#2A2709 #5D5614 #8F841F #C1B22A #D9CB4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F841F#FFFFFF#000000##000000
##8F841F1.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)
#948527
Tritanopia (blue-blind)
#9A7A71
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8f841f;
/* rgb */ color: rgb(143, 132, 31);
/* oklch */ color: oklch(60.5% 0.116 102.8);
Tailwind
colors: {
  custom: {
    50: '#b3a764',
    500: '#8f841f',
    950: '#000000',
  },
}
SCSS
$custom: #8f841f;
$custom-light: #b3a764;
$custom-dark: #000000;
JSON
{
  "hex": "#8f841f",
  "rgb": {
    "r": 143,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 54.107,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.6052,
    "c": 0.11647,
    "h": 102.8
  },
  "luminance": 0.22441
}

Semantic roles & 50–950 ramp

primary
#8F841F
secondary
#4E59BC
accent
#51E740
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F841F

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

Preview Lab → · Contrast checker → · Palette generator →

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