#7E8014#7E8014

#7E8014 is a mid, vivid yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.121 H 110.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E8014
RGBrgb(126, 128, 20)
HSLhsl(61, 73%, 29%)
HSVhsv(61, 84%, 50%)
CMYKcmyk(1.6%, 0%, 84.4%, 49.8%)
CIE-LABlab(51.75, -13.39, 52.38)
CIE-LCHlch(51.75, 54.06, 104.34°)
OKLaboklab(57.95% -0.0429 0.1131)
OKLCHoklch(57.95% 0.121 110.8)
XYZxyz(16.4502, 19.9249, 3.6410)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8014 #161480
analogous
#804C14 #7E8014 #488014
triadic
#7E8014 #147E80 #80147E
tetradic
#7E8014 #14804C #161480 #801448
square
#7E8014 #14804C #161480 #801448
split-complementary
#7E8014 #144880 #4C1480
monochromatic
#1A1A04 #4A4B0C #7E8014 #B2B51C #DBDF30

Accessibility & contrast

On white

4.21
#7E8014 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#7E8014 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8014
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8014#FFFFFF#000000##000000
##7E80141.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8C7D1F
Tritanopia (blue-blind)
#87776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e8014;
/* rgb */ color: rgb(126, 128, 20);
/* oklch */ color: oklch(57.9% 0.121 110.8);
Tailwind
colors: {
  custom: {
    50: '#a7a45e',
    500: '#7e8014',
    950: '#000000',
  },
}
SCSS
$custom: #7e8014;
$custom-light: #a7a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8014",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 20
  },
  "hsl": {
    "h": 61.111,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.57949,
    "c": 0.12092,
    "h": 110.8
  },
  "luminance": 0.19924
}

Semantic roles & 50–950 ramp

primary
#7E8014
secondary
#3D3BB5
accent
#38F03C
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8014

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

Preview Lab → · Contrast checker → · Palette generator →

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