#128D2A#128D2A

#128D2A is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.1% C 0.170 H 145.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#128D2A
RGBrgb(18, 141, 42)
HSLhsl(132, 77%, 31%)
HSVhsv(132, 87%, 55%)
CMYKcmyk(87.2%, 0%, 70.2%, 44.7%)
CIE-LABlab(51.09, -51.63, 42.25)
CIE-LCHlch(51.09, 66.71, 140.71°)
OKLaboklab(56.14% -0.1391 0.0971)
OKLCHoklch(56.14% 0.17 145.1)
XYZxyz(10.1915, 19.3442, 5.3867)
Luminance0.1935 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128D2A #8D1275
analogous
#378D12 #128D2A #128D67
triadic
#128D2A #2A128D #8D2A12
tetradic
#128D2A #12378D #8D1275 #8D6712
square
#128D2A #12378D #8D1275 #8D6712
split-complementary
#128D2A #67128D #8D1237
monochromatic
#04200A #0B571A #128D2A #19C33A #34E557

Accessibility & contrast

On white

4.31
#128D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#128D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128D2A
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128D2A#FFFFFF#000000##000000
##128D2A1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1C
Deuteranopia (green-blind)
#837634
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #128d2a;
/* rgb */ color: rgb(18, 141, 42);
/* oklch */ color: oklch(56.1% 0.170 145.1);
Tailwind
colors: {
  custom: {
    50: '#6bb069',
    500: '#128d2a',
    950: '#000000',
  },
}
SCSS
$custom: #128d2a;
$custom-light: #6bb069;
$custom-dark: #000000;
JSON
{
  "hex": "#128d2a",
  "rgb": {
    "r": 18,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 131.707,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5614,
    "c": 0.16969,
    "h": 145.1
  },
  "luminance": 0.19346
}

Semantic roles & 50–950 ramp

primary
#128D2A
secondary
#C139A7
accent
#34CEF4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081106
muted
#7B807A

Preview Lab

Preview with #128D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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