#8E7F22#8E7F22

#8E7F22 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.3% C 0.110 H 99.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8E7F22
RGBrgb(142, 127, 34)
HSLhsl(52, 61%, 35%)
HSVhsv(52, 76%, 56%)
CMYKcmyk(0%, 10.6%, 76.1%, 44.3%)
CIE-LABlab(53.00, -4.88, 49.45)
CIE-LCHlch(53.00, 49.69, 95.64°)
OKLaboklab(59.32% -0.0187 0.1088)
OKLCHoklch(59.32% 0.11 99.7)
XYZxyz(19.0344, 21.0459, 4.5727)
Luminance0.2104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7F22 #22318E
analogous
#8E4922 #8E7F22 #678E22
triadic
#8E7F22 #228E7F #7F228E
tetradic
#8E7F22 #228E49 #22318E #8E2267
square
#8E7F22 #228E49 #22318E #8E2267
split-complementary
#8E7F22 #22678E #49228E
monochromatic
#2B270A #5D5316 #8E7F22 #BFAB2E #D6C454

Accessibility & contrast

On white

4.03
#8E7F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#8E7F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7F22
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7F22#FFFFFF#000000##000000
##8E7F221.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B11
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#99756D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8e7f22;
/* rgb */ color: rgb(142, 127, 34);
/* oklch */ color: oklch(59.3% 0.110 99.7);
Tailwind
colors: {
  custom: {
    50: '#b3a364',
    500: '#8e7f22',
    950: '#000000',
  },
}
SCSS
$custom: #8e7f22;
$custom-light: #b3a364;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7f22",
  "rgb": {
    "r": 142,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 51.667,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59318,
    "c": 0.11043,
    "h": 99.7
  },
  "luminance": 0.21045
}

Semantic roles & 50–950 ramp

primary
#8E7F22
secondary
#5260BA
accent
#5AE443
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E7F22

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

Preview Lab → · Contrast checker → · Palette generator →

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