#7E862F#7E862F

#7E862F 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#7E862F
RGBrgb(126, 134, 47)
HSLhsl(66, 48%, 35%)
HSVhsv(66, 65%, 53%)
CMYKcmyk(6%, 0%, 64.9%, 47.5%)
CIE-LABlab(53.70, -15.20, 44.29)
CIE-LCHlch(53.70, 46.83, 108.94°)
OKLaboklab(59.56% -0.0454 0.1008)
OKLCHoklch(59.56% 0.111 114.2)
XYZxyz(17.6428, 21.6914, 5.9462)
Luminance0.2169 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E862F #372F86
analogous
#86622F #7E862F #52862F
triadic
#7E862F #2F7E86 #862F7E
tetradic
#7E862F #2F8662 #372F86 #862F52
square
#7E862F #2F8662 #372F86 #862F52
split-complementary
#7E862F #2F5286 #622F86
monochromatic
#292B0F #53591F #7E862F #A9B33F #C0C966

Accessibility & contrast

On white

3.93
#7E862F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E862F#FFFFFF#000000##000000
##7E862F1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e862f;
/* rgb */ color: rgb(126, 134, 47);
/* oklch */ color: oklch(59.6% 0.111 114.2);
Tailwind
colors: {
  custom: {
    50: '#a6a96c',
    500: '#7e862f',
    950: '#000000',
  },
}
SCSS
$custom: #7e862f;
$custom-light: #a6a96c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e862f",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 65.517,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59561,
    "c": 0.11053,
    "h": 114.2
  },
  "luminance": 0.21691
}

Semantic roles & 50–950 ramp

primary
#7E862F
secondary
#6860B0
accent
#50D85D
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E862F

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

Preview Lab → · Contrast checker → · Palette generator →

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