#7E8920#7E8920

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

Color values

HEX#7E8920
RGBrgb(126, 137, 32)
HSLhsl(66, 62%, 33%)
HSVhsv(66, 77%, 54%)
CMYKcmyk(8%, 0%, 76.6%, 46.3%)
CIE-LABlab(54.48, -17.68, 51.08)
CIE-LCHlch(54.48, 54.05, 109.09°)
OKLaboklab(60.16% -0.0538 0.1125)
OKLCHoklch(60.16% 0.125 115.5)
XYZxyz(17.8110, 22.4315, 4.7577)
Luminance0.2243 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8920 #2B2089
analogous
#895F20 #7E8920 #498920
triadic
#7E8920 #207E89 #89207E
tetradic
#7E8920 #20895F #2B2089 #892049
square
#7E8920 #20895F #2B2089 #892049
split-complementary
#7E8920 #204989 #5F2089
monochromatic
#232609 #505714 #7E8920 #ACBB2C #C7D64E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8920#FFFFFF#000000##000000
##7E89201.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)
#938208
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#868175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8920;
/* rgb */ color: rgb(126, 137, 32);
/* oklch */ color: oklch(60.2% 0.125 115.5);
Tailwind
colors: {
  custom: {
    50: '#a6ab64',
    500: '#7e8920',
    950: '#000000',
  },
}
SCSS
$custom: #7e8920;
$custom-light: #a6ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8920",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 32
  },
  "hsl": {
    "h": 66.286,
    "s": 62.13,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60155,
    "c": 0.12471,
    "h": 115.5
  },
  "luminance": 0.22431
}

Semantic roles & 50–950 ramp

primary
#7E8920
secondary
#584CB9
accent
#43E554
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8920

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

Preview Lab → · Contrast checker → · Palette generator →

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