#7E871E#7E871E

#7E871E is a mid, vivid yellow. Relative luminance 0.219; OKLCH L 59.7% C 0.124 H 114.5°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7E871E
RGBrgb(126, 135, 30)
HSLhsl(65, 64%, 32%)
HSVhsv(65, 78%, 53%)
CMYKcmyk(6.7%, 0%, 77.8%, 47.1%)
CIE-LABlab(53.88, -16.72, 51.20)
CIE-LCHlch(53.88, 53.86, 108.09°)
OKLaboklab(59.67% -0.0513 0.1124)
OKLCHoklch(59.67% 0.124 114.5)
XYZxyz(17.5030, 21.8576, 4.5250)
Luminance0.2186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E871E #271E87
analogous
#875C1E #7E871E #49871E
triadic
#7E871E #1E7E87 #871E7E
tetradic
#7E871E #1E875C #271E87 #871E49
square
#7E871E #1E875C #271E87 #871E49
split-complementary
#7E871E #1E4987 #5C1E87
monochromatic
#212308 #4F5513 #7E871E #ADB929 #CAD749

Accessibility & contrast

On white

3.91
#7E871E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#7E871E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E871E
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E871E#FFFFFF#000000##000000
##7E871E1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918004
Deuteranopia (green-blind)
#918227
Tritanopia (blue-blind)
#877F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e871e;
/* rgb */ color: rgb(126, 135, 30);
/* oklch */ color: oklch(59.7% 0.124 114.5);
Tailwind
colors: {
  custom: {
    50: '#a7a963',
    500: '#7e871e',
    950: '#000000',
  },
}
SCSS
$custom: #7e871e;
$custom-light: #a7a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7e871e",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 65.143,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59665,
    "c": 0.12357,
    "h": 114.5
  },
  "luminance": 0.21857
}

Semantic roles & 50–950 ramp

primary
#7E871E
secondary
#5248B9
accent
#41E74F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E871E

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

Preview Lab → · Contrast checker → · Palette generator →

#7E871E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva