#8E731B#8E731B

#8E731B is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.6% C 0.106 H 90.6°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8E731B
RGBrgb(142, 115, 27)
HSLhsl(46, 68%, 33%)
HSVhsv(46, 81%, 56%)
CMYKcmyk(0%, 19%, 81%, 44.3%)
CIE-LABlab(49.61, 1.57, 48.88)
CIE-LCHlch(49.61, 48.90, 88.16°)
OKLaboklab(56.62% -0.0011 0.1061)
OKLCHoklch(56.62% 0.106 90.6)
XYZxyz(17.4849, 18.0925, 3.6080)
Luminance0.1809 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E731B #1B368E
analogous
#8E391B #8E731B #6F8E1B
triadic
#8E731B #1B8E73 #731B8E
tetradic
#8E731B #1B8E39 #1B368E #8E1B6F
square
#8E731B #1B8E39 #1B368E #8E1B6F
split-complementary
#8E731B #1B6F8E #391B8E
monochromatic
#272007 #5B4911 #8E731B #C19D25 #DCB947

Accessibility & contrast

On white

4.55
#8E731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#8E731B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E731B
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E731B#FFFFFF#000000##000000
##8E731B1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#817207
Deuteranopia (green-blind)
#887920
Tritanopia (blue-blind)
#9A6962
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8e731b;
/* rgb */ color: rgb(142, 115, 27);
/* oklch */ color: oklch(56.6% 0.106 90.6);
Tailwind
colors: {
  custom: {
    50: '#b39a5f',
    500: '#8e731b',
    950: '#000000',
  },
}
SCSS
$custom: #8e731b;
$custom-light: #b39a5f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e731b",
  "rgb": {
    "r": 142,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 45.913,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56622,
    "c": 0.10614,
    "h": 90.6
  },
  "luminance": 0.18091
}

Semantic roles & 50–950 ramp

primary
#8E731B
secondary
#4763BE
accent
#66EB3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E731B

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

Preview Lab → · Contrast checker → · Palette generator →

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