#7E8018#7E8018

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

Color values

HEX#7E8018
RGBrgb(126, 128, 24)
HSLhsl(61, 68%, 30%)
HSVhsv(61, 81%, 50%)
CMYKcmyk(1.6%, 0%, 81.3%, 49.8%)
CIE-LABlab(51.77, -13.25, 51.23)
CIE-LCHlch(51.77, 52.92, 104.50°)
OKLaboklab(57.97% -0.0422 0.1113)
OKLCHoklch(57.97% 0.119 110.8)
XYZxyz(16.4888, 19.9404, 3.8443)
Luminance0.1994 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8018 #1A1880
analogous
#804E18 #7E8018 #4A8018
triadic
#7E8018 #187E80 #80187E
tetradic
#7E8018 #18804E #1A1880 #80184A
square
#7E8018 #18804E #1A1880 #80184A
split-complementary
#7E8018 #184A80 #4E1880
monochromatic
#191A05 #4B4C0E #7E8018 #B1B422 #D7DA39

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7e8018;
/* rgb */ color: rgb(126, 128, 24);
/* oklch */ color: oklch(58.0% 0.119 110.8);
Tailwind
colors: {
  custom: {
    50: '#a7a460',
    500: '#7e8018',
    950: '#000000',
  },
}
SCSS
$custom: #7e8018;
$custom-light: #a7a460;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8018",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 61.154,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57968,
    "c": 0.11907,
    "h": 110.8
  },
  "luminance": 0.1994
}

Semantic roles & 50–950 ramp

primary
#7E8018
secondary
#4240B4
accent
#3DEB40
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8018

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

Preview Lab → · Contrast checker → · Palette generator →

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