#7E862D#7E862D

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

Color values

HEX#7E862D
RGBrgb(126, 134, 45)
HSLhsl(65, 50%, 35%)
HSVhsv(65, 66%, 53%)
CMYKcmyk(6%, 0%, 66.4%, 47.5%)
CIE-LABlab(53.68, -15.34, 45.15)
CIE-LCHlch(53.68, 47.69, 108.77°)
OKLaboklab(59.54% -0.046 0.1023)
OKLCHoklch(59.54% 0.112 114.2)
XYZxyz(17.6034, 21.6756, 5.7386)
Luminance0.2167 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E862D #352D86
analogous
#86612D #7E862D #52862D
triadic
#7E862D #2D7E86 #862D7E
tetradic
#7E862D #2D8661 #352D86 #862D52
square
#7E862D #2D8661 #352D86 #862D52
split-complementary
#7E862D #2D5286 #612D86
monochromatic
#282A0E #53581E #7E862D #A9B43C #C1CB63

Accessibility & contrast

On white

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

On black

5.33
#7E862D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E862D
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E862D#FFFFFF#000000##000000
##7E862D1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F21
Deuteranopia (green-blind)
#8F8133
Tritanopia (blue-blind)
#867E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e862d;
/* rgb */ color: rgb(126, 134, 45);
/* oklch */ color: oklch(59.5% 0.112 114.2);
Tailwind
colors: {
  custom: {
    50: '#a6a96b',
    500: '#7e862d',
    950: '#000000',
  },
}
SCSS
$custom: #7e862d;
$custom-light: #a6a96b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e862d",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 45
  },
  "hsl": {
    "h": 65.393,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59542,
    "c": 0.11215,
    "h": 114.2
  },
  "luminance": 0.21675
}

Semantic roles & 50–950 ramp

primary
#7E862D
secondary
#655EB1
accent
#4FD95B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E862D

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

Preview Lab → · Contrast checker → · Palette generator →

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