#7E862B#7E862B

#7E862B 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#7E862B
RGBrgb(126, 134, 43)
HSLhsl(65, 51%, 35%)
HSVhsv(65, 68%, 53%)
CMYKcmyk(6%, 0%, 67.9%, 47.5%)
CIE-LABlab(53.66, -15.48, 46.00)
CIE-LCHlch(53.66, 48.53, 108.60°)
OKLaboklab(59.52% -0.0466 0.1038)
OKLCHoklch(59.52% 0.114 114.2)
XYZxyz(17.5658, 21.6606, 5.5406)
Luminance0.2166 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E862B #332B86
analogous
#86612B #7E862B #50862B
triadic
#7E862B #2B7E86 #862B7E
tetradic
#7E862B #2B8661 #332B86 #862B50
square
#7E862B #2B8661 #332B86 #862B50
split-complementary
#7E862B #2B5086 #612B86
monochromatic
#27290D #52581C #7E862B #AAB43A #C2CC60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E862B#FFFFFF#000000##000000
##7E862B1.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)
#907F1E
Deuteranopia (green-blind)
#8F8131
Tritanopia (blue-blind)
#867E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e862b;
/* rgb */ color: rgb(126, 134, 43);
/* oklch */ color: oklch(59.5% 0.114 114.2);
Tailwind
colors: {
  custom: {
    50: '#a6a96a',
    500: '#7e862b',
    950: '#000000',
  },
}
SCSS
$custom: #7e862b;
$custom-light: #a6a96a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e862b",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 43
  },
  "hsl": {
    "h": 65.275,
    "s": 51.412,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59524,
    "c": 0.11373,
    "h": 114.2
  },
  "luminance": 0.2166
}

Semantic roles & 50–950 ramp

primary
#7E862B
secondary
#635BB2
accent
#4DDB59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E862B

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

Preview Lab → · Contrast checker → · Palette generator →

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