#7E8A13#7E8A13

#7E8A13 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#7E8A13
RGBrgb(126, 138, 19)
HSLhsl(66, 76%, 31%)
HSVhsv(66, 86%, 54%)
CMYKcmyk(8.7%, 0%, 86.2%, 45.9%)
CIE-LABlab(54.72, -18.71, 55.16)
CIE-LCHlch(54.72, 58.25, 108.73°)
OKLaboklab(60.33% -0.0576 0.1189)
OKLCHoklch(60.33% 0.132 115.9)
XYZxyz(17.8107, 22.6599, 4.0515)
Luminance0.2266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A13 #1F138A
analogous
#8A5A13 #7E8A13 #438A13
triadic
#7E8A13 #137E8A #8A137E
tetradic
#7E8A13 #138A5A #1F138A #8A1343
square
#7E8A13 #138A5A #1F138A #8A1343
split-complementary
#7E8A13 #13438A #5A138A
monochromatic
#1C1E04 #4D540C #7E8A13 #AFC01A #D1E334

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7e8a13;
/* rgb */ color: rgb(126, 138, 19);
/* oklch */ color: oklch(60.3% 0.132 115.9);
Tailwind
colors: {
  custom: {
    50: '#a7ac5f',
    500: '#7e8a13',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a13;
$custom-light: #a7ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a13",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 19
  },
  "hsl": {
    "h": 66.05,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.60327,
    "c": 0.13212,
    "h": 115.9
  },
  "luminance": 0.2266
}

Semantic roles & 50–950 ramp

primary
#7E8A13
secondary
#483ABE
accent
#35F248
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7E8A13

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

Preview Lab → · Contrast checker → · Palette generator →

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