#8E7F2A#8E7F2A

#8E7F2A is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.4% C 0.105 H 99.1°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8E7F2A
RGBrgb(142, 127, 42)
HSLhsl(51, 54%, 36%)
HSVhsv(51, 70%, 56%)
CMYKcmyk(0%, 10.6%, 70.4%, 44.3%)
CIE-LABlab(53.06, -4.47, 46.25)
CIE-LCHlch(53.06, 46.47, 95.51°)
OKLaboklab(59.38% -0.0166 0.1036)
OKLCHoklch(59.38% 0.105 99.1)
XYZxyz(19.1635, 21.0976, 5.2529)
Luminance0.2110 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7F2A #2A398E
analogous
#8E4D2A #8E7F2A #6B8E2A
triadic
#8E7F2A #2A8E7F #7F2A8E
tetradic
#8E7F2A #2A8E4D #2A398E #8E2A6B
square
#8E7F2A #2A8E4D #2A398E #8E2A6B
split-complementary
#8E7F2A #2A6B8E #4D2A8E
monochromatic
#302B0E #5F551C #8E7F2A #BDA938 #D1C062

Accessibility & contrast

On white

4.02
#8E7F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#8E7F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7F2A
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7F2A#FFFFFF#000000##000000
##8E7F2A1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7C1E
Deuteranopia (green-blind)
#8F812F
Tritanopia (blue-blind)
#99766E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8e7f2a;
/* rgb */ color: rgb(142, 127, 42);
/* oklch */ color: oklch(59.4% 0.105 99.1);
Tailwind
colors: {
  custom: {
    50: '#b2a369',
    500: '#8e7f2a',
    950: '#000000',
  },
}
SCSS
$custom: #8e7f2a;
$custom-light: #b2a369;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7f2a",
  "rgb": {
    "r": 142,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 51,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.5938,
    "c": 0.10495,
    "h": 99.1
  },
  "luminance": 0.21097
}

Semantic roles & 50–950 ramp

primary
#8E7F2A
secondary
#5D6BB6
accent
#60DE4A
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E7F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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