#7E8A17#7E8A17

#7E8A17 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.53:1 contrast (WCAG AA passes).

Color values

HEX#7E8A17
RGBrgb(126, 138, 23)
HSLhsl(66, 71%, 32%)
HSVhsv(66, 83%, 54%)
CMYKcmyk(8.7%, 0%, 83.3%, 45.9%)
CIE-LABlab(54.74, -18.57, 54.13)
CIE-LCHlch(54.74, 57.23, 108.94°)
OKLaboklab(60.35% -0.057 0.1174)
OKLCHoklch(60.35% 0.13 115.9)
XYZxyz(17.8478, 22.6747, 4.2469)
Luminance0.2267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A17 #23178A
analogous
#8A5D17 #7E8A17 #458A17
triadic
#7E8A17 #177E8A #8A177E
tetradic
#7E8A17 #178A5D #23178A #8A1745
square
#7E8A17 #178A5D #23178A #8A1745
split-complementary
#7E8A17 #17458A #5D178A
monochromatic
#1E2106 #4E560E #7E8A17 #AEBE20 #CEDF3D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A17#FFFFFF#000000##000000
##7E8A171.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8a17;
/* rgb */ color: rgb(126, 138, 23);
/* oklch */ color: oklch(60.3% 0.130 115.9);
Tailwind
colors: {
  custom: {
    50: '#a7ac61',
    500: '#7e8a17',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a17;
$custom-light: #a7ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a17",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 66.261,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60345,
    "c": 0.13047,
    "h": 115.9
  },
  "luminance": 0.22674
}

Semantic roles & 50–950 ramp

primary
#7E8A17
secondary
#4C3FBE
accent
#3AEE4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8A17

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

Preview Lab → · Contrast checker → · Palette generator →

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