#8F7A18#8F7A18

#8F7A18 is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 58.2% C 0.112 H 96.0°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8F7A18
RGBrgb(143, 122, 24)
HSLhsl(49, 71%, 33%)
HSVhsv(49, 83%, 56%)
CMYKcmyk(0%, 14.7%, 83.2%, 43.9%)
CIE-LABlab(51.64, -2.03, 51.73)
CIE-LCHlch(51.64, 51.77, 92.25°)
OKLaboklab(58.25% -0.0116 0.1116)
OKLCHoklch(58.25% 0.112 96)
XYZxyz(18.4531, 19.8257, 3.7188)
Luminance0.1983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7A18 #182D8F
analogous
#8F3F18 #8F7A18 #688F18
triadic
#8F7A18 #188F7A #7A188F
tetradic
#8F7A18 #188F3F #182D8F #8F1868
square
#8F7A18 #188F3F #182D8F #8F1868
split-complementary
#8F7A18 #18688F #3F188F
monochromatic
#262106 #5B4D0F #8F7A18 #C3A721 #DFC442

Accessibility & contrast

On white

4.23
#8F7A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#8F7A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7A18
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7A18#FFFFFF#000000##000000
##8F7A181.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#8D7E1F
Tritanopia (blue-blind)
#9B7068
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8f7a18;
/* rgb */ color: rgb(143, 122, 24);
/* oklch */ color: oklch(58.2% 0.112 96.0);
Tailwind
colors: {
  custom: {
    50: '#b4a05f',
    500: '#8f7a18',
    950: '#000000',
  },
}
SCSS
$custom: #8f7a18;
$custom-light: #b4a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7a18",
  "rgb": {
    "r": 143,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 49.412,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58246,
    "c": 0.11219,
    "h": 96
  },
  "luminance": 0.19825
}

Semantic roles & 50–950 ramp

primary
#8F7A18
secondary
#4359C0
accent
#5AEE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8F7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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