#128F2A#128F2A

#128F2A is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.7% C 0.172 H 145.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#128F2A
RGBrgb(18, 143, 42)
HSLhsl(132, 78%, 32%)
HSVhsv(132, 87%, 56%)
CMYKcmyk(87.4%, 0%, 70.6%, 43.9%)
CIE-LABlab(51.77, -52.28, 42.97)
CIE-LCHlch(51.77, 67.67, 140.58°)
OKLaboklab(56.71% -0.1409 0.0987)
OKLCHoklch(56.71% 0.172 145)
XYZxyz(10.4891, 19.9394, 5.4859)
Luminance0.1994 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128F2A #8F1277
analogous
#398F12 #128F2A #128F69
triadic
#128F2A #2A128F #8F2A12
tetradic
#128F2A #12398F #8F1277 #8F6912
square
#128F2A #12398F #8F1277 #8F6912
split-complementary
#128F2A #69128F #8F1239
monochromatic
#04220A #0B591A #128F2A #19C53A #36E658

Accessibility & contrast

On white

4.21
#128F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#128F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128F2A
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128F2A#FFFFFF#000000##000000
##128F2A1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#92811B
Deuteranopia (green-blind)
#857834
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #128f2a;
/* rgb */ color: rgb(18, 143, 42);
/* oklch */ color: oklch(56.7% 0.172 145.0);
Tailwind
colors: {
  custom: {
    50: '#6cb169',
    500: '#128f2a',
    950: '#000000',
  },
}
SCSS
$custom: #128f2a;
$custom-light: #6cb169;
$custom-dark: #000000;
JSON
{
  "hex": "#128f2a",
  "rgb": {
    "r": 18,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 131.52,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56706,
    "c": 0.17201,
    "h": 145
  },
  "luminance": 0.19941
}

Semantic roles & 50–950 ramp

primary
#128F2A
secondary
#C33AA9
accent
#34CFF4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081107
muted
#7B807A

Preview Lab

Preview with #128F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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