#7E861D#7E861D

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

Color values

HEX#7E861D
RGBrgb(126, 134, 29)
HSLhsl(65, 64%, 32%)
HSVhsv(65, 78%, 53%)
CMYKcmyk(6%, 0%, 78.4%, 47.5%)
CIE-LABlab(53.57, -16.24, 51.26)
CIE-LCHlch(53.57, 53.77, 107.58°)
OKLaboklab(59.42% -0.0501 0.1124)
OKLCHoklch(59.42% 0.123 114)
XYZxyz(17.3516, 21.5749, 4.4125)
Luminance0.2157 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E861D #251D86
analogous
#86591D #7E861D #4A861D
triadic
#7E861D #1D7E86 #861D7E
tetradic
#7E861D #1D8659 #251D86 #861D4A
square
#7E861D #1D8659 #251D86 #861D4A
split-complementary
#7E861D #1D4A86 #591D86
monochromatic
#1F2107 #4F5412 #7E861D #ADB828 #CCD746

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E861D#FFFFFF#000000##000000
##7E861D1.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)
#907F02
Deuteranopia (green-blind)
#908126
Tritanopia (blue-blind)
#877E72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e861d;
/* rgb */ color: rgb(126, 134, 29);
/* oklch */ color: oklch(59.4% 0.123 114.0);
Tailwind
colors: {
  custom: {
    50: '#a7a963',
    500: '#7e861d',
    950: '#000000',
  },
}
SCSS
$custom: #7e861d;
$custom-light: #a7a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7e861d",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 29
  },
  "hsl": {
    "h": 64.571,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5942,
    "c": 0.123,
    "h": 114
  },
  "luminance": 0.21575
}

Semantic roles & 50–950 ramp

primary
#7E861D
secondary
#4F46B9
accent
#40E74D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E861D

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

Preview Lab → · Contrast checker → · Palette generator →

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