#7E862E#7E862E

#7E862E is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.6% C 0.111 H 114.2°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7E862E
RGBrgb(126, 134, 46)
HSLhsl(65, 49%, 35%)
HSVhsv(65, 66%, 53%)
CMYKcmyk(6%, 0%, 65.7%, 47.5%)
CIE-LABlab(53.69, -15.27, 44.72)
CIE-LCHlch(53.69, 47.26, 108.85°)
OKLaboklab(59.55% -0.0457 0.1016)
OKLCHoklch(59.55% 0.111 114.2)
XYZxyz(17.6229, 21.6834, 5.8412)
Luminance0.2168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E862E #362E86
analogous
#86622E #7E862E #52862E
triadic
#7E862E #2E7E86 #862E7E
tetradic
#7E862E #2E8662 #362E86 #862E52
square
#7E862E #2E8662 #362E86 #862E52
split-complementary
#7E862E #2E5286 #622E86
monochromatic
#282B0F #53581E #7E862E #A9B43E #C1CA64

Accessibility & contrast

On white

3.94
#7E862E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#7E862E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E862E
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E862E#FFFFFF#000000##000000
##7E862E1.003.945.345.34
#FFFFFF3.941.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#908023
Deuteranopia (green-blind)
#8F8134
Tritanopia (blue-blind)
#867E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e862e;
/* rgb */ color: rgb(126, 134, 46);
/* oklch */ color: oklch(59.6% 0.111 114.2);
Tailwind
colors: {
  custom: {
    50: '#a6a96b',
    500: '#7e862e',
    950: '#000000',
  },
}
SCSS
$custom: #7e862e;
$custom-light: #a6a96b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e862e",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 46
  },
  "hsl": {
    "h": 65.455,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59551,
    "c": 0.11135,
    "h": 114.2
  },
  "luminance": 0.21683
}

Semantic roles & 50–950 ramp

primary
#7E862E
secondary
#675FB1
accent
#4FD85C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E862E

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

Preview Lab → · Contrast checker → · Palette generator →

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