#7E861F#7E861F

#7E861F is a mid, vivid yellow. Relative luminance 0.216; OKLCH L 59.4% C 0.122 H 114.0°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7E861F
RGBrgb(126, 134, 31)
HSLhsl(65, 62%, 32%)
HSVhsv(65, 77%, 53%)
CMYKcmyk(6%, 0%, 76.9%, 47.5%)
CIE-LABlab(53.58, -16.15, 50.58)
CIE-LCHlch(53.58, 53.10, 107.71°)
OKLaboklab(59.43% -0.0496 0.1113)
OKLCHoklch(59.43% 0.122 114)
XYZxyz(17.3771, 21.5851, 4.5470)
Luminance0.2158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E861F #271F86
analogous
#865A1F #7E861F #4B861F
triadic
#7E861F #1F7E86 #861F7E
tetradic
#7E861F #1F865A #271F86 #861F4B
square
#7E861F #1F865A #271F86 #861F4B
split-complementary
#7E861F #1F4B86 #5A1F86
monochromatic
#212308 #4F5414 #7E861F #ADB82A #CAD54A

Accessibility & contrast

On white

3.95
#7E861F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#7E861F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E861F
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E861F#FFFFFF#000000##000000
##7E861F1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F07
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#877E73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e861f;
/* rgb */ color: rgb(126, 134, 31);
/* oklch */ color: oklch(59.4% 0.122 114.0);
Tailwind
colors: {
  custom: {
    50: '#a7a963',
    500: '#7e861f',
    950: '#000000',
  },
}
SCSS
$custom: #7e861f;
$custom-light: #a7a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7e861f",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 31
  },
  "hsl": {
    "h": 64.66,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59433,
    "c": 0.12187,
    "h": 114
  },
  "luminance": 0.21585
}

Semantic roles & 50–950 ramp

primary
#7E861F
secondary
#5249B8
accent
#42E54F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E861F

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

Preview Lab → · Contrast checker → · Palette generator →

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