#7E8819#7E8819

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

Color values

HEX#7E8819
RGBrgb(126, 136, 25)
HSLhsl(65, 69%, 32%)
HSVhsv(65, 82%, 53%)
CMYKcmyk(7.4%, 0%, 81.6%, 46.7%)
CIE-LABlab(54.15, -17.46, 53.04)
CIE-LCHlch(54.15, 55.84, 108.22°)
OKLaboklab(59.88% -0.0538 0.1154)
OKLCHoklch(59.88% 0.127 115)
XYZxyz(17.5843, 22.1144, 4.2617)
Luminance0.2211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8819 #231988
analogous
#885B19 #7E8819 #478819
triadic
#7E8819 #197E88 #88197E
tetradic
#7E8819 #19885B #231988 #881947
square
#7E8819 #19885B #231988 #881947
split-complementary
#7E8819 #194788 #5B1988
monochromatic
#1E2106 #4E540F #7E8819 #AEBC23 #CEDC40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8819#FFFFFF#000000##000000
##7E88191.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)
#928224
Tritanopia (blue-blind)
#878074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e8819;
/* rgb */ color: rgb(126, 136, 25);
/* oklch */ color: oklch(59.9% 0.127 115.0);
Tailwind
colors: {
  custom: {
    50: '#a7aa61',
    500: '#7e8819',
    950: '#000000',
  },
}
SCSS
$custom: #7e8819;
$custom-light: #a7aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8819",
  "rgb": {
    "r": 126,
    "g": 136,
    "b": 25
  },
  "hsl": {
    "h": 65.405,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59876,
    "c": 0.12731,
    "h": 115
  },
  "luminance": 0.22114
}

Semantic roles & 50–950 ramp

primary
#7E8819
secondary
#4C41BB
accent
#3CEC4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8819

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

Preview Lab → · Contrast checker → · Palette generator →

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