#7E8015#7E8015

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

Color values

HEX#7E8015
RGBrgb(126, 128, 21)
HSLhsl(61, 72%, 29%)
HSVhsv(61, 84%, 50%)
CMYKcmyk(1.6%, 0%, 83.6%, 49.8%)
CIE-LABlab(51.76, -13.36, 52.11)
CIE-LCHlch(51.76, 53.79, 104.38°)
OKLaboklab(57.95% -0.0427 0.1126)
OKLCHoklch(57.95% 0.12 110.8)
XYZxyz(16.4593, 19.9286, 3.6889)
Luminance0.1993 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8015 #171580
analogous
#804C15 #7E8015 #498015
triadic
#7E8015 #157E80 #80157E
tetradic
#7E8015 #15804C #171580 #801549
square
#7E8015 #15804C #171580 #801549
split-complementary
#7E8015 #154980 #4C1580
monochromatic
#1A1A04 #4A4B0C #7E8015 #B2B51E #DADD32

Accessibility & contrast

On white

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

On black

4.99
#7E8015 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8015
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8015#FFFFFF#000000##000000
##7E80151.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.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: #7e8015;
/* rgb */ color: rgb(126, 128, 21);
/* oklch */ color: oklch(58.0% 0.120 110.8);
Tailwind
colors: {
  custom: {
    50: '#a7a45e',
    500: '#7e8015',
    950: '#000000',
  },
}
SCSS
$custom: #7e8015;
$custom-light: #a7a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8015",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 61.121,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57953,
    "c": 0.12048,
    "h": 110.8
  },
  "luminance": 0.19928
}

Semantic roles & 50–950 ramp

primary
#7E8015
secondary
#3E3CB5
accent
#39EF3D
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8015

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

Preview Lab → · Contrast checker → · Palette generator →

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