#7E8B22#7E8B22

#7E8B22 is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.6% C 0.126 H 116.5°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7E8B22
RGBrgb(126, 139, 34)
HSLhsl(67, 61%, 34%)
HSVhsv(67, 76%, 55%)
CMYKcmyk(9.4%, 0%, 75.5%, 45.5%)
CIE-LABlab(55.09, -18.62, 50.94)
CIE-LCHlch(55.09, 54.24, 110.08°)
OKLaboklab(60.65% -0.0562 0.1126)
OKLCHoklch(60.65% 0.126 116.5)
XYZxyz(18.1260, 23.0166, 5.0008)
Luminance0.2302 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B22 #2F228B
analogous
#8B6422 #7E8B22 #4A8B22
triadic
#7E8B22 #227E8B #8B227E
tetradic
#7E8B22 #228B64 #2F228B #8B224A
square
#7E8B22 #228B64 #2F228B #8B224A
split-complementary
#7E8B22 #224A8B #64228B
monochromatic
#25290A #515A16 #7E8B22 #ABBC2E #C5D553

Accessibility & contrast

On white

3.75
#7E8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#7E8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8B22
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8B22#FFFFFF#000000##000000
##7E8B221.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#95830C
Deuteranopia (green-blind)
#94852B
Tritanopia (blue-blind)
#868377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b22;
/* rgb */ color: rgb(126, 139, 34);
/* oklch */ color: oklch(60.6% 0.126 116.5);
Tailwind
colors: {
  custom: {
    50: '#a6ac66',
    500: '#7e8b22',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b22;
$custom-light: #a6ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b22",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 67.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60647,
    "c": 0.12586,
    "h": 116.5
  },
  "luminance": 0.23016
}

Semantic roles & 50–950 ramp

primary
#7E8B22
secondary
#5D50B8
accent
#44E458
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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