#7E8A14#7E8A14

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

Color values

HEX#7E8A14
RGBrgb(126, 138, 20)
HSLhsl(66, 75%, 31%)
HSVhsv(66, 86%, 54%)
CMYKcmyk(8.7%, 0%, 85.5%, 45.9%)
CIE-LABlab(54.72, -18.68, 54.92)
CIE-LCHlch(54.72, 58.01, 108.78°)
OKLaboklab(60.33% -0.0575 0.1185)
OKLCHoklch(60.33% 0.132 115.9)
XYZxyz(17.8195, 22.6634, 4.0974)
Luminance0.2266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A14 #20148A
analogous
#8A5B14 #7E8A14 #438A14
triadic
#7E8A14 #147E8A #8A147E
tetradic
#7E8A14 #148A5B #20148A #8A1443
square
#7E8A14 #148A5B #20148A #8A1443
split-complementary
#7E8A14 #14438A #5B148A
monochromatic
#1C1F05 #4D550C #7E8A14 #AFBF1C #D0E236

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A14#FFFFFF#000000##000000
##7E8A141.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)
#938421
Tritanopia (blue-blind)
#878175
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a14;
/* rgb */ color: rgb(126, 138, 20);
/* oklch */ color: oklch(60.3% 0.132 115.9);
Tailwind
colors: {
  custom: {
    50: '#a7ac60',
    500: '#7e8a14',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a14;
$custom-light: #a7ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a14",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 20
  },
  "hsl": {
    "h": 66.102,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.60331,
    "c": 0.13173,
    "h": 115.9
  },
  "luminance": 0.22663
}

Semantic roles & 50–950 ramp

primary
#7E8A14
secondary
#493CBE
accent
#36F149
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7E8A14

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

Preview Lab → · Contrast checker → · Palette generator →

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