#7E8A1A#7E8A1A

#7E8A1A is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.129 H 115.9°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7E8A1A
RGBrgb(126, 138, 26)
HSLhsl(66, 68%, 32%)
HSVhsv(66, 81%, 54%)
CMYKcmyk(8.7%, 0%, 81.2%, 45.9%)
CIE-LABlab(54.75, -18.46, 53.27)
CIE-LCHlch(54.75, 56.38, 109.11°)
OKLaboklab(60.36% -0.0564 0.1161)
OKLCHoklch(60.36% 0.129 115.9)
XYZxyz(17.8796, 22.6874, 4.4143)
Luminance0.2269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A1A #261A8A
analogous
#8A5E1A #7E8A1A #468A1A
triadic
#7E8A1A #1A7E8A #8A1A7E
tetradic
#7E8A1A #1A8A5E #261A8A #8A1A46
square
#7E8A1A #1A8A5E #261A8A #8A1A46
split-complementary
#7E8A1A #1A468A #5E1A8A
monochromatic
#202307 #4F5710 #7E8A1A #ADBD24 #CBDC43

Accessibility & contrast

On white

3.79
#7E8A1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7E8A1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A1A
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A1A#FFFFFF#000000##000000
##7E8A1A1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938425
Tritanopia (blue-blind)
#878276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a1a;
/* rgb */ color: rgb(126, 138, 26);
/* oklch */ color: oklch(60.4% 0.129 115.9);
Tailwind
colors: {
  custom: {
    50: '#a7ac62',
    500: '#7e8a1a',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a1a;
$custom-light: #a7ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a1a",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 66.429,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.6036,
    "c": 0.12908,
    "h": 115.9
  },
  "luminance": 0.22687
}

Semantic roles & 50–950 ramp

primary
#7E8A1A
secondary
#5043BD
accent
#3DEB4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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