#8F8A12#8F8A12

#8F8A12 is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.8% C 0.128 H 106.9°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8F8A12
RGBrgb(143, 138, 18)
HSLhsl(58, 78%, 32%)
HSVhsv(58, 87%, 56%)
CMYKcmyk(0%, 3.5%, 87.4%, 43.9%)
CIE-LABlab(56.15, -11.01, 57.17)
CIE-LCHlch(56.15, 58.22, 100.90°)
OKLaboklab(61.82% -0.0372 0.1223)
OKLCHoklch(61.82% 0.128 106.9)
XYZxyz(20.5263, 24.0610, 4.1352)
Luminance0.2406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A12 #12178F
analogous
#8F4C12 #8F8A12 #568F12
triadic
#8F8A12 #128F8A #8A128F
tetradic
#8F8A12 #128F4C #12178F #8F1256
square
#8F8A12 #128F4C #12178F #8F1256
split-complementary
#8F8A12 #12568F #4C128F
monochromatic
#222104 #59560B #8F8A12 #C5BE19 #E6DF36

Accessibility & contrast

On white

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

On black

5.81
#8F8A12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8A12
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8A12#FFFFFF#000000##000000
##8F8A121.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978400
Deuteranopia (green-blind)
#99881F
Tritanopia (blue-blind)
#9A8075
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a12;
/* rgb */ color: rgb(143, 138, 18);
/* oklch */ color: oklch(61.8% 0.128 106.9);
Tailwind
colors: {
  custom: {
    50: '#b4ab5f',
    500: '#8f8a12',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a12;
$custom-light: #b4ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a12",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 18
  },
  "hsl": {
    "h": 57.6,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61821,
    "c": 0.12782,
    "h": 106.9
  },
  "luminance": 0.2406
}

Semantic roles & 50–950 ramp

primary
#8F8A12
secondary
#3A3FC3
accent
#3BF434
background
#FBFAF5
surface
#F6F4EA
border
#D0CEC6
text
#121005
muted
#817F79

Preview Lab

Preview with #8F8A12

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

Preview Lab → · Contrast checker → · Palette generator →

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