#8F8918#8F8918

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

Color values

HEX#8F8918
RGBrgb(143, 137, 24)
HSLhsl(57, 71%, 33%)
HSVhsv(57, 83%, 56%)
CMYKcmyk(0%, 4.2%, 83.2%, 43.9%)
CIE-LABlab(55.88, -10.29, 55.41)
CIE-LCHlch(55.88, 56.35, 100.52°)
OKLaboklab(61.62% -0.0348 0.1195)
OKLCHoklch(61.62% 0.125 106.3)
XYZxyz(20.4391, 23.7977, 4.3808)
Luminance0.2380 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8918 #181E8F
analogous
#8F4E18 #8F8918 #598F18
triadic
#8F8918 #188F89 #89188F
tetradic
#8F8918 #188F4E #181E8F #8F1859
square
#8F8918 #188F4E #181E8F #8F1859
split-complementary
#8F8918 #18598F #4E188F
monochromatic
#262506 #5B570F #8F8918 #C3BB21 #DFD742

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F8918#FFFFFF#000000##000000
##8F89181.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)
#968400
Deuteranopia (green-blind)
#988822
Tritanopia (blue-blind)
#9A7F75
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8f8918;
/* rgb */ color: rgb(143, 137, 24);
/* oklch */ color: oklch(61.6% 0.125 106.3);
Tailwind
colors: {
  custom: {
    50: '#b4ab61',
    500: '#8f8918',
    950: '#000000',
  },
}
SCSS
$custom: #8f8918;
$custom-light: #b4ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8918",
  "rgb": {
    "r": 143,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 56.975,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61618,
    "c": 0.12452,
    "h": 106.3
  },
  "luminance": 0.23797
}

Semantic roles & 50–950 ramp

primary
#8F8918
secondary
#4349C0
accent
#43EE3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121005
muted
#817F7A

Preview Lab

Preview with #8F8918

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

Preview Lab → · Contrast checker → · Palette generator →

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