#7E8928#7E8928

#7E8928 is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.120 H 115.7°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7E8928
RGBrgb(126, 137, 40)
HSLhsl(67, 55%, 35%)
HSVhsv(67, 71%, 54%)
CMYKcmyk(8%, 0%, 70.8%, 46.3%)
CIE-LABlab(54.53, -17.25, 48.12)
CIE-LCHlch(54.53, 51.12, 109.72°)
OKLaboklab(60.21% -0.0518 0.1077)
OKLCHoklch(60.21% 0.12 115.7)
XYZxyz(17.9333, 22.4804, 5.4015)
Luminance0.2248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8928 #332889
analogous
#896428 #7E8928 #4E8928
triadic
#7E8928 #287E89 #89287E
tetradic
#7E8928 #288964 #332889 #89284E
square
#7E8928 #288964 #332889 #89284E
split-complementary
#7E8928 #284E89 #642889
monochromatic
#272A0C #525A1A #7E8928 #AAB836 #C2CF5C

Accessibility & contrast

On white

3.82
#7E8928 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#7E8928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8928
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8928#FFFFFF#000000##000000
##7E89281.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938219
Deuteranopia (green-blind)
#92832F
Tritanopia (blue-blind)
#868176
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8928;
/* rgb */ color: rgb(126, 137, 40);
/* oklch */ color: oklch(60.2% 0.120 115.7);
Tailwind
colors: {
  custom: {
    50: '#a6ab68',
    500: '#7e8928',
    950: '#000000',
  },
}
SCSS
$custom: #7e8928;
$custom-light: #a6ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8928",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 40
  },
  "hsl": {
    "h": 66.804,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60212,
    "c": 0.11953,
    "h": 115.7
  },
  "luminance": 0.2248
}

Semantic roles & 50–950 ramp

primary
#7E8928
secondary
#6358B5
accent
#4ADE5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8928

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

Preview Lab → · Contrast checker → · Palette generator →

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