#8F7818#8F7818

#8F7818 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.8% C 0.111 H 94.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8F7818
RGBrgb(143, 120, 24)
HSLhsl(48, 71%, 33%)
HSVhsv(48, 83%, 56%)
CMYKcmyk(0%, 16.1%, 83.2%, 43.9%)
CIE-LABlab(51.08, -0.90, 51.24)
CIE-LCHlch(51.08, 51.25, 91.01°)
OKLaboklab(57.8% -0.0085 0.1105)
OKLCHoklch(57.8% 0.111 94.4)
XYZxyz(18.2101, 19.3396, 3.6377)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7818 #182F8F
analogous
#8F3C18 #8F7818 #6B8F18
triadic
#8F7818 #188F78 #78188F
tetradic
#8F7818 #188F3C #182F8F #8F186B
square
#8F7818 #188F3C #182F8F #8F186B
split-complementary
#8F7818 #186B8F #3C188F
monochromatic
#262006 #5B4C0F #8F7818 #C3A421 #DFC142

Accessibility & contrast

On white

4.31
#8F7818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8F7818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7818
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7818#FFFFFF#000000##000000
##8F78181.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f7818;
/* rgb */ color: rgb(143, 120, 24);
/* oklch */ color: oklch(57.8% 0.111 94.4);
Tailwind
colors: {
  custom: {
    50: '#b49e5f',
    500: '#8f7818',
    950: '#000000',
  },
}
SCSS
$custom: #8f7818;
$custom-light: #b49e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7818",
  "rgb": {
    "r": 143,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 48.403,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57805,
    "c": 0.11084,
    "h": 94.4
  },
  "luminance": 0.19339
}

Semantic roles & 50–950 ramp

primary
#8F7818
secondary
#435BC0
accent
#5DEE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8F7818

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

Preview Lab → · Contrast checker → · Palette generator →

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