#8E8A23#8E8A23

#8E8A23 is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 61.8% C 0.120 H 107.2°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8E8A23
RGBrgb(142, 138, 35)
HSLhsl(58, 60%, 35%)
HSVhsv(58, 75%, 56%)
CMYKcmyk(0%, 2.8%, 75.4%, 44.3%)
CIE-LABlab(56.14, -10.85, 52.05)
CIE-LCHlch(56.14, 53.17, 101.78°)
OKLaboklab(61.82% -0.0354 0.1146)
OKLCHoklch(61.82% 0.12 107.2)
XYZxyz(20.5480, 24.0498, 5.1495)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8A23 #23278E
analogous
#8E5523 #8E8A23 #5D8E23
triadic
#8E8A23 #238E8A #8A238E
tetradic
#8E8A23 #238E55 #23278E #8E235D
square
#8E8A23 #238E55 #23278E #8E235D
split-complementary
#8E8A23 #235D8E #55238E
monochromatic
#2C2B0B #5D5A17 #8E8A23 #BFBA2F #D5D156

Accessibility & contrast

On white

3.61
#8E8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8E8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8A23
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8A23#FFFFFF#000000##000000
##8E8A231.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#96840E
Deuteranopia (green-blind)
#98882B
Tritanopia (blue-blind)
#998176
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8e8a23;
/* rgb */ color: rgb(142, 138, 35);
/* oklch */ color: oklch(61.8% 0.120 107.2);
Tailwind
colors: {
  custom: {
    50: '#b2ab66',
    500: '#8e8a23',
    950: '#000000',
  },
}
SCSS
$custom: #8e8a23;
$custom-light: #b2ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8a23",
  "rgb": {
    "r": 142,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 57.757,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61815,
    "c": 0.1199,
    "h": 107.2
  },
  "luminance": 0.24049
}

Semantic roles & 50–950 ramp

primary
#8E8A23
secondary
#5357B9
accent
#4AE444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8E8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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