#8F8A1F#8F8A1F

#8F8A1F is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.9% C 0.122 H 106.7°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8F8A1F
RGBrgb(143, 138, 31)
HSLhsl(57, 64%, 34%)
HSVhsv(57, 78%, 56%)
CMYKcmyk(0%, 3.5%, 78.3%, 43.9%)
CIE-LABlab(56.20, -10.57, 53.53)
CIE-LCHlch(56.20, 54.57, 101.17°)
OKLaboklab(61.88% -0.035 0.1169)
OKLCHoklch(61.88% 0.122 106.7)
XYZxyz(20.6643, 24.1163, 4.8625)
Luminance0.2412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A1F #1F248F
analogous
#8F521F #8F8A1F #5C8F1F
triadic
#8F8A1F #1F8F8A #8A1F8F
tetradic
#8F8A1F #1F8F52 #1F248F #8F1F5C
square
#8F8A1F #1F8F52 #1F248F #8F1F5C
split-complementary
#8F8A1F #1F5C8F #521F8F
monochromatic
#2A2909 #5D5914 #8F8A1F #C1BB2A #D9D34F

Accessibility & contrast

On white

3.61
#8F8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#8F8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8A1F
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8A1F#FFFFFF#000000##000000
##8F8A1F1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968504
Deuteranopia (green-blind)
#998928
Tritanopia (blue-blind)
#9A8076
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a1f;
/* rgb */ color: rgb(143, 138, 31);
/* oklch */ color: oklch(61.9% 0.122 106.7);
Tailwind
colors: {
  custom: {
    50: '#b3ab64',
    500: '#8f8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a1f;
$custom-light: #b3ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a1f",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 57.321,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61883,
    "c": 0.12203,
    "h": 106.7
  },
  "luminance": 0.24116
}

Semantic roles & 50–950 ramp

primary
#8F8A1F
secondary
#4E53BC
accent
#48E740
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8F8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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