#8F7918#8F7918

#8F7918 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 58.0% C 0.112 H 95.2°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8F7918
RGBrgb(143, 121, 24)
HSLhsl(49, 71%, 33%)
HSVhsv(49, 83%, 56%)
CMYKcmyk(0%, 15.4%, 83.2%, 43.9%)
CIE-LABlab(51.36, -1.47, 51.49)
CIE-LCHlch(51.36, 51.51, 91.63°)
OKLaboklab(58.03% -0.0101 0.1111)
OKLCHoklch(58.03% 0.112 95.2)
XYZxyz(18.3310, 19.5814, 3.6780)
Luminance0.1958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7918 #182E8F
analogous
#8F3E18 #8F7918 #698F18
triadic
#8F7918 #188F79 #79188F
tetradic
#8F7918 #188F3E #182E8F #8F1869
square
#8F7918 #188F3E #182E8F #8F1869
split-complementary
#8F7918 #18698F #3E188F
monochromatic
#262006 #5B4D0F #8F7918 #C3A521 #DFC242

Accessibility & contrast

On white

4.27
#8F7918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#8F7918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7918
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7918#FFFFFF#000000##000000
##8F79181.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#8C7D1F
Tritanopia (blue-blind)
#9B6F67
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8f7918;
/* rgb */ color: rgb(143, 121, 24);
/* oklch */ color: oklch(58.0% 0.112 95.2);
Tailwind
colors: {
  custom: {
    50: '#b49f5f',
    500: '#8f7918',
    950: '#000000',
  },
}
SCSS
$custom: #8f7918;
$custom-light: #b49f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7918",
  "rgb": {
    "r": 143,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 48.908,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58025,
    "c": 0.1115,
    "h": 95.2
  },
  "luminance": 0.1958
}

Semantic roles & 50–950 ramp

primary
#8F7918
secondary
#435AC0
accent
#5BEE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8F7918

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

Preview Lab → · Contrast checker → · Palette generator →

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