#7E862A#7E862A

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

Color values

HEX#7E862A
RGBrgb(126, 134, 42)
HSLhsl(65, 52%, 35%)
HSVhsv(65, 69%, 53%)
CMYKcmyk(6%, 0%, 68.7%, 47.5%)
CIE-LABlab(53.66, -15.54, 46.41)
CIE-LCHlch(53.66, 48.95, 108.51°)
OKLaboklab(59.51% -0.0468 0.1045)
OKLCHoklch(59.51% 0.114 114.2)
XYZxyz(17.5477, 21.6533, 5.4452)
Luminance0.2165 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E862A #322A86
analogous
#86602A #7E862A #50862A
triadic
#7E862A #2A7E86 #862A7E
tetradic
#7E862A #2A8660 #322A86 #862A50
square
#7E862A #2A8660 #322A86 #862A50
split-complementary
#7E862A #2A5086 #602A86
monochromatic
#26290D #52571B #7E862A #AAB539 #C3CD5E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E862A#FFFFFF#000000##000000
##7E862A1.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)
#907F1D
Deuteranopia (green-blind)
#8F8131
Tritanopia (blue-blind)
#867E73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e862a;
/* rgb */ color: rgb(126, 134, 42);
/* oklch */ color: oklch(59.5% 0.114 114.2);
Tailwind
colors: {
  custom: {
    50: '#a6a969',
    500: '#7e862a',
    950: '#000000',
  },
}
SCSS
$custom: #7e862a;
$custom-light: #a6a969;
$custom-dark: #000000;
JSON
{
  "hex": "#7e862a",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 42
  },
  "hsl": {
    "h": 65.217,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59515,
    "c": 0.11449,
    "h": 114.2
  },
  "luminance": 0.21653
}

Semantic roles & 50–950 ramp

primary
#7E862A
secondary
#615AB2
accent
#4CDC59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E862A

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

Preview Lab → · Contrast checker → · Palette generator →

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