#7E8D22#7E8D22

#7E8D22 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.1% C 0.128 H 117.4°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7E8D22
RGBrgb(126, 141, 34)
HSLhsl(68, 61%, 34%)
HSVhsv(68, 76%, 55%)
CMYKcmyk(10.6%, 0%, 75.9%, 44.7%)
CIE-LABlab(55.69, -19.65, 51.51)
CIE-LCHlch(55.69, 55.13, 110.88°)
OKLaboklab(61.13% -0.0591 0.1138)
OKLCHoklch(61.13% 0.128 117.4)
XYZxyz(18.4182, 23.6011, 5.0983)
Luminance0.2360 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D22 #31228D
analogous
#8D6722 #7E8D22 #498D22
triadic
#7E8D22 #227E8D #8D227E
tetradic
#7E8D22 #228D67 #31228D #8D2249
square
#7E8D22 #228D67 #31228D #8D2249
split-complementary
#7E8D22 #22498D #67228D
monochromatic
#262A0A #525C16 #7E8D22 #AABE2E #C3D654

Accessibility & contrast

On white

3.67
#7E8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#7E8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D22
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D22#FFFFFF#000000##000000
##7E8D221.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850B
Deuteranopia (green-blind)
#95862B
Tritanopia (blue-blind)
#868579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d22;
/* rgb */ color: rgb(126, 141, 34);
/* oklch */ color: oklch(61.1% 0.128 117.4);
Tailwind
colors: {
  custom: {
    50: '#a6ae66',
    500: '#7e8d22',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d22;
$custom-light: #a6ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d22",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 68.411,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61126,
    "c": 0.12822,
    "h": 117.4
  },
  "luminance": 0.23601
}

Semantic roles & 50–950 ramp

primary
#7E8D22
secondary
#6051B9
accent
#44E45A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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