#7E8017#7E8017

#7E8017 is a mid, moderate 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#7E8017
RGBrgb(126, 128, 23)
HSLhsl(61, 70%, 30%)
HSVhsv(61, 82%, 50%)
CMYKcmyk(1.6%, 0%, 82%, 49.8%)
CIE-LABlab(51.77, -13.29, 51.53)
CIE-LCHlch(51.77, 53.22, 104.46°)
OKLaboklab(57.96% -0.0424 0.1118)
OKLCHoklch(57.96% 0.12 110.8)
XYZxyz(16.4786, 19.9363, 3.7905)
Luminance0.1994 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8017 #191780
analogous
#804E17 #7E8017 #4A8017
triadic
#7E8017 #177E80 #80177E
tetradic
#7E8017 #17804E #191780 #80174A
square
#7E8017 #17804E #191780 #80174A
split-complementary
#7E8017 #174A80 #4E1780
monochromatic
#1A1A05 #4B4C0E #7E8017 #B1B420 #D8DB36

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8017#FFFFFF#000000##000000
##7E80171.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)
#8C7D21
Tritanopia (blue-blind)
#87776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e8017;
/* rgb */ color: rgb(126, 128, 23);
/* oklch */ color: oklch(58.0% 0.120 110.8);
Tailwind
colors: {
  custom: {
    50: '#a7a45f',
    500: '#7e8017',
    950: '#000000',
  },
}
SCSS
$custom: #7e8017;
$custom-light: #a7a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8017",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 61.143,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57963,
    "c": 0.11955,
    "h": 110.8
  },
  "luminance": 0.19936
}

Semantic roles & 50–950 ramp

primary
#7E8017
secondary
#413EB4
accent
#3BEC3F
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8017

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

Preview Lab → · Contrast checker → · Palette generator →

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