#7E8822#7E8822

#7E8822 is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 59.9% C 0.122 H 115.1°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7E8822
RGBrgb(126, 136, 34)
HSLhsl(66, 60%, 33%)
HSVhsv(66, 75%, 53%)
CMYKcmyk(7.4%, 0%, 75%, 46.7%)
CIE-LABlab(54.20, -17.05, 50.09)
CIE-LCHlch(54.20, 52.92, 108.80°)
OKLaboklab(59.93% -0.0519 0.1108)
OKLCHoklch(59.93% 0.122 115.1)
XYZxyz(17.6976, 22.1597, 4.8580)
Luminance0.2216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8822 #2C2288
analogous
#885F22 #7E8822 #4B8822
triadic
#7E8822 #227E88 #88227E
tetradic
#7E8822 #22885F #2C2288 #88224B
square
#7E8822 #22885F #2C2288 #88224B
split-complementary
#7E8822 #224B88 #5F2288
monochromatic
#23260A #515716 #7E8822 #ABB92E #C7D351

Accessibility & contrast

On white

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

On black

5.43
#7E8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8822
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8822#FFFFFF#000000##000000
##7E88221.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810D
Deuteranopia (green-blind)
#91822A
Tritanopia (blue-blind)
#868074
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8822;
/* rgb */ color: rgb(126, 136, 34);
/* oklch */ color: oklch(59.9% 0.122 115.1);
Tailwind
colors: {
  custom: {
    50: '#a6aa65',
    500: '#7e8822',
    950: '#000000',
  },
}
SCSS
$custom: #7e8822;
$custom-light: #a6aa65;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8822",
  "rgb": {
    "r": 126,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 65.882,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59929,
    "c": 0.12235,
    "h": 115.1
  },
  "luminance": 0.22159
}

Semantic roles & 50–950 ramp

primary
#7E8822
secondary
#594FB7
accent
#45E354
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8822

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

Preview Lab → · Contrast checker → · Palette generator →

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