#7E8428#7E8428

#7E8428 is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.0% C 0.114 H 113.0°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7E8428
RGBrgb(126, 132, 40)
HSLhsl(64, 53%, 34%)
HSVhsv(64, 70%, 52%)
CMYKcmyk(4.5%, 0%, 69.7%, 48.2%)
CIE-LABlab(53.05, -14.60, 46.63)
CIE-LCHlch(53.05, 48.86, 107.39°)
OKLaboklab(59.02% -0.0444 0.1046)
OKLCHoklch(59.02% 0.114 113)
XYZxyz(17.2389, 21.0917, 5.1701)
Luminance0.2109 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8428 #2E2884
analogous
#845C28 #7E8428 #508428
triadic
#7E8428 #287E84 #84287E
tetradic
#7E8428 #28845C #2E2884 #842850
square
#7E8428 #28845C #2E2884 #842850
split-complementary
#7E8428 #285084 #5C2884
monochromatic
#24260C #51551A #7E8428 #ABB336 #C5CD5A

Accessibility & contrast

On white

4.02
#7E8428 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#7E8428 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8428
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8428#FFFFFF#000000##000000
##7E84281.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1A
Deuteranopia (green-blind)
#8E802F
Tritanopia (blue-blind)
#877C72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e8428;
/* rgb */ color: rgb(126, 132, 40);
/* oklch */ color: oklch(59.0% 0.114 113.0);
Tailwind
colors: {
  custom: {
    50: '#a6a768',
    500: '#7e8428',
    950: '#000000',
  },
}
SCSS
$custom: #7e8428;
$custom-light: #a6a768;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8428",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 40
  },
  "hsl": {
    "h": 63.913,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59023,
    "c": 0.11363,
    "h": 113
  },
  "luminance": 0.21091
}

Semantic roles & 50–950 ramp

primary
#7E8428
secondary
#5C56B2
accent
#4BDD54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8428

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

Preview Lab → · Contrast checker → · Palette generator →

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