#8E7E23#8E7E23

#8E7E23 is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.1% C 0.109 H 98.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8E7E23
RGBrgb(142, 126, 35)
HSLhsl(51, 60%, 35%)
HSVhsv(51, 75%, 56%)
CMYKcmyk(0%, 11.3%, 75.4%, 44.3%)
CIE-LABlab(52.72, -4.28, 48.80)
CIE-LCHlch(52.72, 48.99, 95.01°)
OKLaboklab(59.1% -0.0169 0.1077)
OKLCHoklch(59.1% 0.109 98.9)
XYZxyz(18.9205, 20.7948, 4.6070)
Luminance0.2079 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7E23 #23338E
analogous
#8E4923 #8E7E23 #698E23
triadic
#8E7E23 #238E7E #7E238E
tetradic
#8E7E23 #238E49 #23338E #8E2369
square
#8E7E23 #238E49 #23338E #8E2369
split-complementary
#8E7E23 #23698E #49238E
monochromatic
#2C270B #5D5217 #8E7E23 #BFAA2F #D5C256

Accessibility & contrast

On white

4.07
#8E7E23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#8E7E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7E23
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7E23#FFFFFF#000000##000000
##8E7E231.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B13
Deuteranopia (green-blind)
#8F8029
Tritanopia (blue-blind)
#99746C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8e7e23;
/* rgb */ color: rgb(142, 126, 35);
/* oklch */ color: oklch(59.1% 0.109 98.9);
Tailwind
colors: {
  custom: {
    50: '#b2a365',
    500: '#8e7e23',
    950: '#000000',
  },
}
SCSS
$custom: #8e7e23;
$custom-light: #b2a365;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7e23",
  "rgb": {
    "r": 142,
    "g": 126,
    "b": 35
  },
  "hsl": {
    "h": 51.028,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59101,
    "c": 0.10897,
    "h": 98.9
  },
  "luminance": 0.20794
}

Semantic roles & 50–950 ramp

primary
#8E7E23
secondary
#5363B9
accent
#5CE444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8E7E23

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

Preview Lab → · Contrast checker → · Palette generator →

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