#8F8A18#8F8A18

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

Color values

HEX#8F8A18
RGBrgb(143, 138, 24)
HSLhsl(57, 71%, 33%)
HSVhsv(57, 83%, 56%)
CMYKcmyk(0%, 3.5%, 83.2%, 43.9%)
CIE-LABlab(56.17, -10.83, 55.65)
CIE-LCHlch(56.17, 56.70, 101.01°)
OKLaboklab(61.85% -0.0363 0.1201)
OKLCHoklch(61.85% 0.125 106.8)
XYZxyz(20.5819, 24.0833, 4.4284)
Luminance0.2408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A18 #181D8F
analogous
#8F4E18 #8F8A18 #588F18
triadic
#8F8A18 #188F8A #8A188F
tetradic
#8F8A18 #188F4E #181D8F #8F1858
square
#8F8A18 #188F4E #181D8F #8F1858
split-complementary
#8F8A18 #18588F #4E188F
monochromatic
#262506 #5B570F #8F8A18 #C3BD21 #DFD942

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F8A18#FFFFFF#000000##000000
##8F8A181.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)
#978400
Deuteranopia (green-blind)
#998923
Tritanopia (blue-blind)
#9A8076
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a18;
/* rgb */ color: rgb(143, 138, 24);
/* oklch */ color: oklch(61.8% 0.125 106.8);
Tailwind
colors: {
  custom: {
    50: '#b4ab61',
    500: '#8f8a18',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a18;
$custom-light: #b4ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a18",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 57.479,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61846,
    "c": 0.12546,
    "h": 106.8
  },
  "luminance": 0.24083
}

Semantic roles & 50–950 ramp

primary
#8F8A18
secondary
#4348C0
accent
#41EE3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #8F8A18

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

Preview Lab → · Contrast checker → · Palette generator →

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