#128E2C#128E2C

#128E2C is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.4% C 0.169 H 145.3°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#128E2C
RGBrgb(18, 142, 44)
HSLhsl(133, 78%, 31%)
HSVhsv(133, 87%, 56%)
CMYKcmyk(87.3%, 0%, 69%, 44.3%)
CIE-LABlab(51.45, -51.74, 41.78)
CIE-LCHlch(51.45, 66.50, 141.08°)
OKLaboklab(56.44% -0.1394 0.0964)
OKLCHoklch(56.44% 0.169 145.3)
XYZxyz(10.3763, 19.6551, 5.6293)
Luminance0.1966 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128E2C #8E1274
analogous
#368E12 #128E2C #128E6A
triadic
#128E2C #2C128E #8E2C12
tetradic
#128E2C #12368E #8E1274 #8E6A12
square
#128E2C #12368E #8E1274 #8E6A12
split-complementary
#128E2C #6A128E #8E1236
monochromatic
#04210A #0B581B #128E2C #19C43D #35E55A

Accessibility & contrast

On white

4.26
#128E2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#128E2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128E2C
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128E2C#FFFFFF#000000##000000
##128E2C1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#90801F
Deuteranopia (green-blind)
#847735
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #128e2c;
/* rgb */ color: rgb(18, 142, 44);
/* oklch */ color: oklch(56.4% 0.169 145.3);
Tailwind
colors: {
  custom: {
    50: '#6bb06a',
    500: '#128e2c',
    950: '#000000',
  },
}
SCSS
$custom: #128e2c;
$custom-light: #6bb06a;
$custom-dark: #000000;
JSON
{
  "hex": "#128e2c",
  "rgb": {
    "r": 18,
    "g": 142,
    "b": 44
  },
  "hsl": {
    "h": 132.581,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56442,
    "c": 0.16945,
    "h": 145.3
  },
  "luminance": 0.19656
}

Semantic roles & 50–950 ramp

primary
#128E2C
secondary
#C23AA6
accent
#34CCF4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081107
muted
#7B807A

Preview Lab

Preview with #128E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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