#8F791F#8F791F

#8F791F is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 58.1% C 0.108 H 94.6°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8F791F
RGBrgb(143, 121, 31)
HSLhsl(48, 64%, 34%)
HSVhsv(48, 78%, 56%)
CMYKcmyk(0%, 15.4%, 78.3%, 43.9%)
CIE-LABlab(51.40, -1.20, 49.10)
CIE-LCHlch(51.40, 49.12, 91.40°)
OKLaboklab(58.07% -0.0086 0.1074)
OKLCHoklch(58.07% 0.108 94.6)
XYZxyz(18.4134, 19.6144, 4.1121)
Luminance0.1961 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F791F #1F358F
analogous
#8F411F #8F791F #6D8F1F
triadic
#8F791F #1F8F79 #791F8F
tetradic
#8F791F #1F8F41 #1F358F #8F1F6D
square
#8F791F #1F8F41 #1F358F #8F1F6D
split-complementary
#8F791F #1F6D8F #411F8F
monochromatic
#2A2409 #5D4E14 #8F791F #C1A42A #D9BE4F

Accessibility & contrast

On white

4.27
#8F791F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#8F791F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F791F
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F791F#FFFFFF#000000##000000
##8F791F1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#86770D
Deuteranopia (green-blind)
#8C7D25
Tritanopia (blue-blind)
#9B6F68
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8f791f;
/* rgb */ color: rgb(143, 121, 31);
/* oklch */ color: oklch(58.1% 0.108 94.6);
Tailwind
colors: {
  custom: {
    50: '#b49f62',
    500: '#8f791f',
    950: '#000000',
  },
}
SCSS
$custom: #8f791f;
$custom-light: #b49f62;
$custom-dark: #000000;
JSON
{
  "hex": "#8f791f",
  "rgb": {
    "r": 143,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 48.214,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58067,
    "c": 0.10778,
    "h": 94.6
  },
  "luminance": 0.19613
}

Semantic roles & 50–950 ramp

primary
#8F791F
secondary
#4E63BC
accent
#61E740
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #8F791F

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

Preview Lab → · Contrast checker → · Palette generator →

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