#7E8E22#7E8E22

#7E8E22 is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.4% C 0.129 H 117.9°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7E8E22
RGBrgb(126, 142, 34)
HSLhsl(69, 61%, 35%)
HSVhsv(69, 76%, 56%)
CMYKcmyk(11.3%, 0%, 76.1%, 44.3%)
CIE-LABlab(55.98, -20.17, 51.79)
CIE-LCHlch(55.98, 55.58, 111.27°)
OKLaboklab(61.37% -0.0605 0.1144)
OKLCHoklch(61.37% 0.129 117.9)
XYZxyz(18.5663, 23.8973, 5.1476)
Luminance0.2390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E22 #32228E
analogous
#8E6822 #7E8E22 #488E22
triadic
#7E8E22 #227E8E #8E227E
tetradic
#7E8E22 #228E68 #32228E #8E2248
square
#7E8E22 #228E68 #32228E #8E2248
split-complementary
#7E8E22 #22488E #68228E
monochromatic
#262B0A #525D16 #7E8E22 #AABF2E #C3D654

Accessibility & contrast

On white

3.63
#7E8E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#7E8E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E22
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E22#FFFFFF#000000##000000
##7E8E221.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860A
Deuteranopia (green-blind)
#96872B
Tritanopia (blue-blind)
#868679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e22;
/* rgb */ color: rgb(126, 142, 34);
/* oklch */ color: oklch(61.4% 0.129 117.9);
Tailwind
colors: {
  custom: {
    50: '#a6af66',
    500: '#7e8e22',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e22;
$custom-light: #a6af66;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e22",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 68.889,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61366,
    "c": 0.1294,
    "h": 117.9
  },
  "luminance": 0.23897
}

Semantic roles & 50–950 ramp

primary
#7E8E22
secondary
#6152BA
accent
#43E45B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8E22

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

Preview Lab → · Contrast checker → · Palette generator →

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