#8E7A18#8E7A18

#8E7A18 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.1% C 0.112 H 96.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8E7A18
RGBrgb(142, 122, 24)
HSLhsl(50, 71%, 33%)
HSVhsv(50, 83%, 56%)
CMYKcmyk(0%, 14.1%, 83.1%, 44.3%)
CIE-LABlab(51.54, -2.50, 51.60)
CIE-LCHlch(51.54, 51.66, 92.77°)
OKLaboklab(58.14% -0.0129 0.1114)
OKLCHoklch(58.14% 0.112 96.6)
XYZxyz(18.2807, 19.7368, 3.7107)
Luminance0.1974 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7A18 #182C8E
analogous
#8E3F18 #8E7A18 #678E18
triadic
#8E7A18 #188E7A #7A188E
tetradic
#8E7A18 #188E3F #182C8E #8E1867
square
#8E7A18 #188E3F #182C8E #8E1867
split-complementary
#8E7A18 #18678E #3F188E
monochromatic
#252006 #5A4D0F #8E7A18 #C2A721 #DFC441

Accessibility & contrast

On white

4.24
#8E7A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8E7A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7A18
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7A18#FFFFFF#000000##000000
##8E7A181.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e7a18;
/* rgb */ color: rgb(142, 122, 24);
/* oklch */ color: oklch(58.1% 0.112 96.6);
Tailwind
colors: {
  custom: {
    50: '#b3a05f',
    500: '#8e7a18',
    950: '#000000',
  },
}
SCSS
$custom: #8e7a18;
$custom-light: #b3a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7a18",
  "rgb": {
    "r": 142,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 49.831,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58142,
    "c": 0.1121,
    "h": 96.6
  },
  "luminance": 0.19736
}

Semantic roles & 50–950 ramp

primary
#8E7A18
secondary
#4257C0
accent
#58EE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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