#8E7B18#8E7B18

#8E7B18 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.4% C 0.113 H 97.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8E7B18
RGBrgb(142, 123, 24)
HSLhsl(50, 71%, 33%)
HSVhsv(50, 83%, 56%)
CMYKcmyk(0%, 13.4%, 83.1%, 44.3%)
CIE-LABlab(51.82, -3.06, 51.85)
CIE-LCHlch(51.82, 51.94, 93.37°)
OKLaboklab(58.36% -0.0145 0.1119)
OKLCHoklch(58.36% 0.113 97.4)
XYZxyz(18.4042, 19.9837, 3.7518)
Luminance0.1998 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7B18 #182B8E
analogous
#8E4018 #8E7B18 #668E18
triadic
#8E7B18 #188E7B #7B188E
tetradic
#8E7B18 #188E40 #182B8E #8E1866
square
#8E7B18 #188E40 #182B8E #8E1866
split-complementary
#8E7B18 #18668E #40188E
monochromatic
#252006 #5A4E0F #8E7B18 #C2A821 #DFC641

Accessibility & contrast

On white

4.20
#8E7B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8E7B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7B18
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7B18#FFFFFF#000000##000000
##8E7B181.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#8D7E20
Tritanopia (blue-blind)
#9A7169
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8e7b18;
/* rgb */ color: rgb(142, 123, 24);
/* oklch */ color: oklch(58.4% 0.113 97.4);
Tailwind
colors: {
  custom: {
    50: '#b3a05f',
    500: '#8e7b18',
    950: '#000000',
  },
}
SCSS
$custom: #8e7b18;
$custom-light: #b3a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7b18",
  "rgb": {
    "r": 142,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 50.339,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58364,
    "c": 0.11282,
    "h": 97.4
  },
  "luminance": 0.19983
}

Semantic roles & 50–950 ramp

primary
#8E7B18
secondary
#4256C0
accent
#57EE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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