#7E8A15#7E8A15

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

Color values

HEX#7E8A15
RGBrgb(126, 138, 21)
HSLhsl(66, 74%, 31%)
HSVhsv(66, 85%, 54%)
CMYKcmyk(8.7%, 0%, 84.8%, 45.9%)
CIE-LABlab(54.73, -18.64, 54.66)
CIE-LCHlch(54.73, 57.75, 108.83°)
OKLaboklab(60.34% -0.0573 0.1182)
OKLCHoklch(60.34% 0.131 115.9)
XYZxyz(17.8285, 22.6670, 4.1453)
Luminance0.2267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A15 #21158A
analogous
#8A5B15 #7E8A15 #438A15
triadic
#7E8A15 #157E8A #8A157E
tetradic
#7E8A15 #158A5B #21158A #8A1543
square
#7E8A15 #158A5B #21158A #8A1543
split-complementary
#7E8A15 #15438A #5B158A
monochromatic
#1D2005 #4D550D #7E8A15 #AEBF1D #D0E139

Accessibility & contrast

On white

3.80
#7E8A15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#7E8A15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A15
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A15#FFFFFF#000000##000000
##7E8A151.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8a15;
/* rgb */ color: rgb(126, 138, 21);
/* oklch */ color: oklch(60.3% 0.131 115.9);
Tailwind
colors: {
  custom: {
    50: '#a7ac60',
    500: '#7e8a15',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a15;
$custom-light: #a7ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a15",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 21
  },
  "hsl": {
    "h": 66.154,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.60336,
    "c": 0.13132,
    "h": 115.9
  },
  "luminance": 0.22667
}

Semantic roles & 50–950 ramp

primary
#7E8A15
secondary
#4A3DBE
accent
#38F04A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8A15

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

Preview Lab → · Contrast checker → · Palette generator →

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