#128A28#128A28

#128A28 is a mid, vivid green. Relative luminance 0.185; OKLCH L 55.3% C 0.168 H 144.9°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#128A28
RGBrgb(18, 138, 40)
HSLhsl(131, 77%, 31%)
HSVhsv(131, 87%, 54%)
CMYKcmyk(87%, 0%, 71%, 45.9%)
CIE-LABlab(50.05, -50.86, 41.98)
CIE-LCHlch(50.05, 65.95, 140.46°)
OKLaboklab(55.27% -0.1371 0.0963)
OKLCHoklch(55.27% 0.168 144.9)
XYZxyz(9.7202, 18.4575, 5.0574)
Luminance0.1846 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128A28 #8A1274
analogous
#388A12 #128A28 #128A64
triadic
#128A28 #28128A #8A2812
tetradic
#128A28 #12388A #8A1274 #8A6412
square
#128A28 #12388A #8A1274 #8A6412
split-complementary
#128A28 #64128A #8A1238
monochromatic
#041E09 #0B5418 #128A28 #19C038 #32E453

Accessibility & contrast

On white

4.48
#128A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#128A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128A28
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128A28#FFFFFF#000000##000000
##128A281.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1A
Deuteranopia (green-blind)
#807432
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #128a28;
/* rgb */ color: rgb(18, 138, 40);
/* oklch */ color: oklch(55.3% 0.168 144.9);
Tailwind
colors: {
  custom: {
    50: '#6aad67',
    500: '#128a28',
    950: '#000000',
  },
}
SCSS
$custom: #128a28;
$custom-light: #6aad67;
$custom-dark: #000000;
JSON
{
  "hex": "#128a28",
  "rgb": {
    "r": 18,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 131,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55268,
    "c": 0.16757,
    "h": 144.9
  },
  "luminance": 0.18459
}

Semantic roles & 50–950 ramp

primary
#128A28
secondary
#BF39A6
accent
#34D0F3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #128A28

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

Preview Lab → · Contrast checker → · Palette generator →

#128A28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva