#8E8231#8E8231

#8E8231 is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.1% C 0.102 H 100.9°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8E8231
RGBrgb(142, 130, 49)
HSLhsl(52, 49%, 37%)
HSVhsv(52, 65%, 56%)
CMYKcmyk(0%, 8.5%, 65.5%, 44.3%)
CIE-LABlab(53.96, -5.69, 44.09)
CIE-LCHlch(53.96, 44.45, 97.36°)
OKLaboklab(60.12% -0.0192 0.1002)
OKLCHoklch(60.12% 0.102 100.9)
XYZxyz(19.6931, 21.9386, 6.1024)
Luminance0.2194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8231 #313D8E
analogous
#8E5331 #8E8231 #6C8E31
triadic
#8E8231 #318E82 #82318E
tetradic
#8E8231 #318E53 #313D8E #8E316C
square
#8E8231 #318E53 #313D8E #8E316C
split-complementary
#8E8231 #316C8E #53318E
monochromatic
#332F12 #615821 #8E8231 #BBAC41 #CDC06D

Accessibility & contrast

On white

3.90
#8E8231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#8E8231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8231
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8231#FFFFFF#000000##000000
##8E82311.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E27
Deuteranopia (green-blind)
#918335
Tritanopia (blue-blind)
#997971
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8e8231;
/* rgb */ color: rgb(142, 130, 49);
/* oklch */ color: oklch(60.1% 0.102 100.9);
Tailwind
colors: {
  custom: {
    50: '#b2a66d',
    500: '#8e8231',
    950: '#000000',
  },
}
SCSS
$custom: #8e8231;
$custom-light: #b2a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8231",
  "rgb": {
    "r": 142,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 52.258,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.60117,
    "c": 0.10207,
    "h": 100.9
  },
  "luminance": 0.21938
}

Semantic roles & 50–950 ramp

primary
#8E8231
secondary
#6771B4
accent
#61D850
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8E8231

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

Preview Lab → · Contrast checker → · Palette generator →

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