#8F7E1F#8F7E1F

#8F7E1F is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.2% C 0.111 H 98.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8F7E1F
RGBrgb(143, 126, 31)
HSLhsl(51, 64%, 34%)
HSVhsv(51, 78%, 56%)
CMYKcmyk(0%, 11.9%, 78.3%, 43.9%)
CIE-LABlab(52.80, -4.00, 50.40)
CIE-LCHlch(52.80, 50.56, 94.53°)
OKLaboklab(59.17% -0.0165 0.1102)
OKLCHoklch(59.17% 0.111 98.5)
XYZxyz(19.0368, 20.8612, 4.3200)
Luminance0.2086 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7E1F #1F308F
analogous
#8F461F #8F7E1F #688F1F
triadic
#8F7E1F #1F8F7E #7E1F8F
tetradic
#8F7E1F #1F8F46 #1F308F #8F1F68
square
#8F7E1F #1F8F46 #1F308F #8F1F68
split-complementary
#8F7E1F #1F688F #461F8F
monochromatic
#2A2509 #5D5214 #8F7E1F #C1AA2A #D9C44F

Accessibility & contrast

On white

4.06
#8F7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#8F7E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7E1F
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7E1F#FFFFFF#000000##000000
##8F7E1F1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0B
Deuteranopia (green-blind)
#908126
Tritanopia (blue-blind)
#9B746C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8f7e1f;
/* rgb */ color: rgb(143, 126, 31);
/* oklch */ color: oklch(59.2% 0.111 98.5);
Tailwind
colors: {
  custom: {
    50: '#b3a363',
    500: '#8f7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #8f7e1f;
$custom-light: #b3a363;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7e1f",
  "rgb": {
    "r": 143,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 50.893,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59174,
    "c": 0.11145,
    "h": 98.5
  },
  "luminance": 0.2086
}

Semantic roles & 50–950 ramp

primary
#8F7E1F
secondary
#4E5FBC
accent
#5AE740
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #8F7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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