#8F781F#8F781F

#8F781F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.8% C 0.107 H 93.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8F781F
RGBrgb(143, 120, 31)
HSLhsl(48, 64%, 34%)
HSVhsv(48, 78%, 56%)
CMYKcmyk(0%, 16.1%, 78.3%, 43.9%)
CIE-LABlab(51.12, -0.63, 48.84)
CIE-LCHlch(51.12, 48.85, 90.74°)
OKLaboklab(57.85% -0.007 0.1069)
OKLCHoklch(57.85% 0.107 93.7)
XYZxyz(18.2925, 19.3726, 4.0718)
Luminance0.1937 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F781F #1F368F
analogous
#8F401F #8F781F #6E8F1F
triadic
#8F781F #1F8F78 #781F8F
tetradic
#8F781F #1F8F40 #1F368F #8F1F6E
square
#8F781F #1F8F40 #1F368F #8F1F6E
split-complementary
#8F781F #1F6E8F #401F8F
monochromatic
#2A2409 #5D4E14 #8F781F #C1A22A #D9BD4F

Accessibility & contrast

On white

4.31
#8F781F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8F781F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F781F
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F781F#FFFFFF#000000##000000
##8F781F1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#86760E
Deuteranopia (green-blind)
#8B7D25
Tritanopia (blue-blind)
#9B6E67
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8f781f;
/* rgb */ color: rgb(143, 120, 31);
/* oklch */ color: oklch(57.8% 0.107 93.7);
Tailwind
colors: {
  custom: {
    50: '#b49e62',
    500: '#8f781f',
    950: '#000000',
  },
}
SCSS
$custom: #8f781f;
$custom-light: #b49e62;
$custom-dark: #000000;
JSON
{
  "hex": "#8f781f",
  "rgb": {
    "r": 143,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 47.679,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57847,
    "c": 0.10711,
    "h": 93.7
  },
  "luminance": 0.19372
}

Semantic roles & 50–950 ramp

primary
#8F781F
secondary
#4E64BC
accent
#63E740
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #8F781F

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

Preview Lab → · Contrast checker → · Palette generator →

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