#7E8028#7E8028

#7E8028 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.1% C 0.109 H 110.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7E8028
RGBrgb(126, 128, 40)
HSLhsl(61, 52%, 33%)
HSVhsv(61, 69%, 50%)
CMYKcmyk(1.6%, 0%, 68.8%, 49.8%)
CIE-LABlab(51.87, -12.45, 45.43)
CIE-LCHlch(51.87, 47.10, 105.33°)
OKLaboklab(58.08% -0.0384 0.1021)
OKLCHoklch(58.08% 0.109 110.6)
XYZxyz(16.7069, 20.0276, 4.9927)
Luminance0.2003 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8028 #2A2880
analogous
#805628 #7E8028 #528028
triadic
#7E8028 #287E80 #80287E
tetradic
#7E8028 #288056 #2A2880 #802852
square
#7E8028 #288056 #2A2880 #802852
split-complementary
#7E8028 #285280 #562880
monochromatic
#22230B #505119 #7E8028 #ACAF37 #C8CB58

Accessibility & contrast

On white

4.20
#7E8028 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7E8028 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8028
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8028#FFFFFF#000000##000000
##7E80281.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1B
Deuteranopia (green-blind)
#8B7D2E
Tritanopia (blue-blind)
#87786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e8028;
/* rgb */ color: rgb(126, 128, 40);
/* oklch */ color: oklch(58.1% 0.109 110.6);
Tailwind
colors: {
  custom: {
    50: '#a6a467',
    500: '#7e8028',
    950: '#000000',
  },
}
SCSS
$custom: #7e8028;
$custom-light: #a6a467;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8028",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 40
  },
  "hsl": {
    "h": 61.364,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58079,
    "c": 0.10905,
    "h": 110.6
  },
  "luminance": 0.20027
}

Semantic roles & 50–950 ramp

primary
#7E8028
secondary
#5654B0
accent
#4CDC4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8028

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

Preview Lab → · Contrast checker → · Palette generator →

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