#7E8922#7E8922

#7E8922 is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.2% C 0.124 H 115.6°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7E8922
RGBrgb(126, 137, 34)
HSLhsl(66, 60%, 34%)
HSVhsv(66, 75%, 54%)
CMYKcmyk(8%, 0%, 75.2%, 46.3%)
CIE-LABlab(54.49, -17.58, 50.38)
CIE-LCHlch(54.49, 53.36, 109.24°)
OKLaboklab(60.17% -0.0533 0.1114)
OKLCHoklch(60.17% 0.124 115.6)
XYZxyz(17.8391, 22.4427, 4.9052)
Luminance0.2244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8922 #2D2289
analogous
#896022 #7E8922 #4A8922
triadic
#7E8922 #227E89 #89227E
tetradic
#7E8922 #228960 #2D2289 #89224A
square
#7E8922 #228960 #2D2289 #89224A
split-complementary
#7E8922 #224A89 #602289
monochromatic
#24270A #515816 #7E8922 #ABBA2E #C6D451

Accessibility & contrast

On white

3.83
#7E8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7E8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8922
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8922#FFFFFF#000000##000000
##7E89221.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820D
Deuteranopia (green-blind)
#92832B
Tritanopia (blue-blind)
#868175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8922;
/* rgb */ color: rgb(126, 137, 34);
/* oklch */ color: oklch(60.2% 0.124 115.6);
Tailwind
colors: {
  custom: {
    50: '#a6ab65',
    500: '#7e8922',
    950: '#000000',
  },
}
SCSS
$custom: #7e8922;
$custom-light: #a6ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8922",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 66.408,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60168,
    "c": 0.12351,
    "h": 115.6
  },
  "luminance": 0.22442
}

Semantic roles & 50–950 ramp

primary
#7E8922
secondary
#5A4FB8
accent
#44E355
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8922

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

Preview Lab → · Contrast checker → · Palette generator →

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