#7E862C#7E862C

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

Color values

HEX#7E862C
RGBrgb(126, 134, 44)
HSLhsl(65, 51%, 35%)
HSVhsv(65, 67%, 53%)
CMYKcmyk(6%, 0%, 67.2%, 47.5%)
CIE-LABlab(53.67, -15.41, 45.58)
CIE-LCHlch(53.67, 48.11, 108.68°)
OKLaboklab(59.53% -0.0463 0.103)
OKLCHoklch(59.53% 0.113 114.2)
XYZxyz(17.5844, 21.6680, 5.6384)
Luminance0.2167 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E862C #342C86
analogous
#86612C #7E862C #51862C
triadic
#7E862C #2C7E86 #862C7E
tetradic
#7E862C #2C8661 #342C86 #862C51
square
#7E862C #2C8661 #342C86 #862C51
split-complementary
#7E862C #2C5186 #612C86
monochromatic
#272A0E #53581D #7E862C #A9B43B #C2CB61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E862C#FFFFFF#000000##000000
##7E862C1.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)
#907F20
Deuteranopia (green-blind)
#8F8132
Tritanopia (blue-blind)
#867E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e862c;
/* rgb */ color: rgb(126, 134, 44);
/* oklch */ color: oklch(59.5% 0.113 114.2);
Tailwind
colors: {
  custom: {
    50: '#a6a96a',
    500: '#7e862c',
    950: '#000000',
  },
}
SCSS
$custom: #7e862c;
$custom-light: #a6a96a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e862c",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 44
  },
  "hsl": {
    "h": 65.333,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59532,
    "c": 0.11295,
    "h": 114.2
  },
  "luminance": 0.21668
}

Semantic roles & 50–950 ramp

primary
#7E862C
secondary
#645CB1
accent
#4EDA5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E862C

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

Preview Lab → · Contrast checker → · Palette generator →

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