#8F8912#8F8912

#8F8912 is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.6% C 0.127 H 106.4°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8F8912
RGBrgb(143, 137, 18)
HSLhsl(57, 78%, 32%)
HSVhsv(57, 87%, 56%)
CMYKcmyk(0%, 4.2%, 87.4%, 43.9%)
CIE-LABlab(55.86, -10.47, 56.93)
CIE-LCHlch(55.86, 57.89, 100.42°)
OKLaboklab(61.59% -0.0357 0.1218)
OKLCHoklch(61.59% 0.127 106.4)
XYZxyz(20.3834, 23.7754, 4.0876)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8912 #12188F
analogous
#8F4B12 #8F8912 #578F12
triadic
#8F8912 #128F89 #89128F
tetradic
#8F8912 #128F4B #12188F #8F1257
square
#8F8912 #128F4B #12188F #8F1257
split-complementary
#8F8912 #12578F #4B128F
monochromatic
#222104 #59550B #8F8912 #C5BD19 #E6DD36

Accessibility & contrast

On white

3.65
#8F8912 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#8F8912 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8912
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8912#FFFFFF#000000##000000
##8F89121.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#968300
Deuteranopia (green-blind)
#98881F
Tritanopia (blue-blind)
#9A7F74
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8f8912;
/* rgb */ color: rgb(143, 137, 18);
/* oklch */ color: oklch(61.6% 0.127 106.4);
Tailwind
colors: {
  custom: {
    50: '#b4ab5f',
    500: '#8f8912',
    950: '#000000',
  },
}
SCSS
$custom: #8f8912;
$custom-light: #b4ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8912",
  "rgb": {
    "r": 143,
    "g": 137,
    "b": 18
  },
  "hsl": {
    "h": 57.12,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61593,
    "c": 0.12689,
    "h": 106.4
  },
  "luminance": 0.23775
}

Semantic roles & 50–950 ramp

primary
#8F8912
secondary
#3A40C3
accent
#3DF434
background
#FBFAF5
surface
#F6F4EA
border
#D0CEC6
text
#121005
muted
#817F79

Preview Lab

Preview with #8F8912

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

Preview Lab → · Contrast checker → · Palette generator →

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