#428A12#428A12

#428A12 is a mid, vivid yellow-green. Relative luminance 0.194; OKLCH L 56.5% C 0.162 H 136.7°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#428A12
RGBrgb(66, 138, 18)
HSLhsl(96, 77%, 31%)
HSVhsv(96, 87%, 54%)
CMYKcmyk(52.2%, 0%, 87%, 45.9%)
CIE-LABlab(51.13, -42.44, 50.90)
CIE-LCHlch(51.13, 66.27, 129.82°)
OKLaboklab(56.46% -0.1182 0.1115)
OKLCHoklch(56.46% 0.162 136.7)
XYZxyz(11.4441, 19.3780, 3.7094)
Luminance0.1938 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#428A12 #5A128A
analogous
#7E8A12 #428A12 #128A1E
triadic
#428A12 #12428A #8A1242
tetradic
#428A12 #127E8A #5A128A #8A1E12
square
#428A12 #127E8A #5A128A #8A1E12
split-complementary
#428A12 #1E128A #8A127E
monochromatic
#0E1E04 #28540B #428A12 #5CC019 #79E432

Accessibility & contrast

On white

4.31
#428A12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#428A12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #428A12
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##428A12#FFFFFF#000000##000000
##428A121.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#867822
Tritanopia (blue-blind)
#3E8575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #428a12;
/* rgb */ color: rgb(66, 138, 18);
/* oklch */ color: oklch(56.5% 0.162 136.7);
Tailwind
colors: {
  custom: {
    50: '#7fad5e',
    500: '#428a12',
    950: '#000000',
  },
}
SCSS
$custom: #428a12;
$custom-light: #7fad5e;
$custom-dark: #000000;
JSON
{
  "hex": "#428a12",
  "rgb": {
    "r": 66,
    "g": 138,
    "b": 18
  },
  "hsl": {
    "h": 96,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56464,
    "c": 0.16246,
    "h": 136.7
  },
  "luminance": 0.19379
}

Semantic roles & 50–950 ramp

primary
#428A12
secondary
#8939BF
accent
#34F3A7
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #428A12

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

Preview Lab → · Contrast checker → · Palette generator →

#428A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva