#7E8A18#7E8A18

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

Color values

HEX#7E8A18
RGBrgb(126, 138, 24)
HSLhsl(66, 70%, 32%)
HSVhsv(66, 83%, 54%)
CMYKcmyk(8.7%, 0%, 82.6%, 45.9%)
CIE-LABlab(54.74, -18.54, 53.85)
CIE-LCHlch(54.74, 56.96, 109.00°)
OKLaboklab(60.35% -0.0568 0.117)
OKLCHoklch(60.35% 0.13 115.9)
XYZxyz(17.8580, 22.6788, 4.3007)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A18 #24188A
analogous
#8A5D18 #7E8A18 #458A18
triadic
#7E8A18 #187E8A #8A187E
tetradic
#7E8A18 #188A5D #24188A #8A1845
square
#7E8A18 #188A5D #24188A #8A1845
split-complementary
#7E8A18 #18458A #5D188A
monochromatic
#1F2206 #4E560F #7E8A18 #AEBE21 #CDDE3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A18#FFFFFF#000000##000000
##7E8A181.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)
#938424
Tritanopia (blue-blind)
#878275
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a18;
/* rgb */ color: rgb(126, 138, 24);
/* oklch */ color: oklch(60.3% 0.130 115.9);
Tailwind
colors: {
  custom: {
    50: '#a7ac61',
    500: '#7e8a18',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a18;
$custom-light: #a7ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a18",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 66.316,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60349,
    "c": 0.13003,
    "h": 115.9
  },
  "luminance": 0.22679
}

Semantic roles & 50–950 ramp

primary
#7E8A18
secondary
#4E40BD
accent
#3BED4D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8A18

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

Preview Lab → · Contrast checker → · Palette generator →

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