#7E8817#7E8817

#7E8817 is a mid, vivid yellow. Relative luminance 0.221; OKLCH L 59.9% C 0.128 H 115.0°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7E8817
RGBrgb(126, 136, 23)
HSLhsl(65, 71%, 31%)
HSVhsv(65, 83%, 53%)
CMYKcmyk(7.4%, 0%, 83.1%, 46.7%)
CIE-LABlab(54.14, -17.53, 53.61)
CIE-LCHlch(54.14, 56.41, 108.11°)
OKLaboklab(59.87% -0.0541 0.1163)
OKLCHoklch(59.87% 0.128 115)
XYZxyz(17.5635, 22.1061, 4.1521)
Luminance0.2211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8817 #211788
analogous
#885917 #7E8817 #458817
triadic
#7E8817 #177E88 #88177E
tetradic
#7E8817 #178859 #211788 #881745
square
#7E8817 #178859 #211788 #881745
split-complementary
#7E8817 #174588 #591788
monochromatic
#1D1F05 #4D540E #7E8817 #AEBC20 #D0DE3B

Accessibility & contrast

On white

3.87
#7E8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#7E8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8817
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8817#FFFFFF#000000##000000
##7E88171.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#928223
Tritanopia (blue-blind)
#878074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e8817;
/* rgb */ color: rgb(126, 136, 23);
/* oklch */ color: oklch(59.9% 0.128 115.0);
Tailwind
colors: {
  custom: {
    50: '#a7aa60',
    500: '#7e8817',
    950: '#000000',
  },
}
SCSS
$custom: #7e8817;
$custom-light: #a7aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8817",
  "rgb": {
    "r": 126,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 65.31,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59866,
    "c": 0.12824,
    "h": 115
  },
  "luminance": 0.22106
}

Semantic roles & 50–950 ramp

primary
#7E8817
secondary
#4A3FBC
accent
#3AEE4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8817

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

Preview Lab → · Contrast checker → · Palette generator →

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