#7E871A#7E871A

#7E871A is a mid, vivid yellow. Relative luminance 0.218; OKLCH L 59.6% C 0.126 H 114.5°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7E871A
RGBrgb(126, 135, 26)
HSLhsl(65, 68%, 32%)
HSVhsv(65, 81%, 53%)
CMYKcmyk(6.7%, 0%, 80.7%, 47.1%)
CIE-LABlab(53.86, -16.90, 52.48)
CIE-LCHlch(53.86, 55.13, 107.85°)
OKLaboklab(59.64% -0.0521 0.1144)
OKLCHoklch(59.64% 0.126 114.5)
XYZxyz(17.4551, 21.8385, 4.2728)
Luminance0.2184 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E871A #231A87
analogous
#875A1A #7E871A #48871A
triadic
#7E871A #1A7E87 #871A7E
tetradic
#7E871A #1A875A #231A87 #871A48
square
#7E871A #1A875A #231A87 #871A48
split-complementary
#7E871A #1A4887 #5A1A87
monochromatic
#1E2006 #4E5410 #7E871A #AEBA24 #CEDA41

Accessibility & contrast

On white

3.91
#7E871A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#7E871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E871A
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E871A#FFFFFF#000000##000000
##7E871A1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#918224
Tritanopia (blue-blind)
#877F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e871a;
/* rgb */ color: rgb(126, 135, 26);
/* oklch */ color: oklch(59.6% 0.126 114.5);
Tailwind
colors: {
  custom: {
    50: '#a7a961',
    500: '#7e871a',
    950: '#000000',
  },
}
SCSS
$custom: #7e871a;
$custom-light: #a7a961;
$custom-dark: #000000;
JSON
{
  "hex": "#7e871a",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 64.954,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59642,
    "c": 0.1257,
    "h": 114.5
  },
  "luminance": 0.21838
}

Semantic roles & 50–950 ramp

primary
#7E871A
secondary
#4C42BA
accent
#3DEB4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E871A

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

Preview Lab → · Contrast checker → · Palette generator →

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