#8E7218#8E7218

#8E7218 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.4% C 0.107 H 90.0°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8E7218
RGBrgb(142, 114, 24)
HSLhsl(46, 71%, 33%)
HSVhsv(46, 83%, 56%)
CMYKcmyk(0%, 19.7%, 83.1%, 44.3%)
CIE-LABlab(49.32, 2.03, 49.66)
CIE-LCHlch(49.32, 49.70, 87.65°)
OKLaboklab(56.39% -0.0001 0.1071)
OKLCHoklch(56.39% 0.107 90)
XYZxyz(17.3386, 17.8525, 3.3966)
Luminance0.1785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7218 #18348E
analogous
#8E3718 #8E7218 #6F8E18
triadic
#8E7218 #188E72 #72188E
tetradic
#8E7218 #188E37 #18348E #8E186F
square
#8E7218 #188E37 #18348E #8E186F
split-complementary
#8E7218 #186F8E #37188E
monochromatic
#251E06 #5A480F #8E7218 #C29C21 #DFBA41

Accessibility & contrast

On white

4.59
#8E7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#8E7218 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8E7218
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7218#FFFFFF#000000##FFFFFF
##8E72181.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807102
Deuteranopia (green-blind)
#87781E
Tritanopia (blue-blind)
#9A6761
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8e7218;
/* rgb */ color: rgb(142, 114, 24);
/* oklch */ color: oklch(56.4% 0.107 90.0);
Tailwind
colors: {
  custom: {
    50: '#b39a5e',
    500: '#8e7218',
    950: '#000000',
  },
}
SCSS
$custom: #8e7218;
$custom-light: #b39a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7218",
  "rgb": {
    "r": 142,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 45.763,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56387,
    "c": 0.10713,
    "h": 90
  },
  "luminance": 0.17851
}

Semantic roles & 50–950 ramp

primary
#8E7218
secondary
#4260C0
accent
#65EE3A
background
#FBF9F5
surface
#F6F2E9
border
#D0CCC5
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7218

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

Preview Lab → · Contrast checker → · Palette generator →

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