#8F7D1F#8F7D1F

#8F7D1F is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 59.0% C 0.111 H 97.8°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8F7D1F
RGBrgb(143, 125, 31)
HSLhsl(50, 64%, 34%)
HSVhsv(50, 78%, 56%)
CMYKcmyk(0%, 12.6%, 78.3%, 43.9%)
CIE-LABlab(52.52, -3.44, 50.14)
CIE-LCHlch(52.52, 50.26, 93.92°)
OKLaboklab(58.95% -0.015 0.1097)
OKLCHoklch(58.95% 0.111 97.8)
XYZxyz(18.9096, 20.6068, 4.2775)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7D1F #1F318F
analogous
#8F451F #8F7D1F #698F1F
triadic
#8F7D1F #1F8F7D #7D1F8F
tetradic
#8F7D1F #1F8F45 #1F318F #8F1F69
square
#8F7D1F #1F8F45 #1F318F #8F1F69
split-complementary
#8F7D1F #1F698F #451F8F
monochromatic
#2A2509 #5D5114 #8F7D1F #C1A92A #D9C34F

Accessibility & contrast

On white

4.10
#8F7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#8F7D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7D1F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7D1F#FFFFFF#000000##000000
##8F7D1F1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0B
Deuteranopia (green-blind)
#8F8025
Tritanopia (blue-blind)
#9B736B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8f7d1f;
/* rgb */ color: rgb(143, 125, 31);
/* oklch */ color: oklch(59.0% 0.111 97.8);
Tailwind
colors: {
  custom: {
    50: '#b3a263',
    500: '#8f7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #8f7d1f;
$custom-light: #b3a263;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7d1f",
  "rgb": {
    "r": 143,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 50.357,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58952,
    "c": 0.11068,
    "h": 97.8
  },
  "luminance": 0.20606
}

Semantic roles & 50–950 ramp

primary
#8F7D1F
secondary
#4E60BC
accent
#5BE740
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #8F7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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