#128F2B#128F2B

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

Color values

HEX#128F2B
RGBrgb(18, 143, 43)
HSLhsl(132, 78%, 32%)
HSVhsv(132, 87%, 56%)
CMYKcmyk(87.4%, 0%, 69.9%, 43.9%)
CIE-LABlab(51.78, -52.17, 42.56)
CIE-LCHlch(51.78, 67.33, 140.79°)
OKLaboklab(56.72% -0.1406 0.0979)
OKLCHoklch(56.72% 0.171 145.1)
XYZxyz(10.5072, 19.9466, 5.5813)
Luminance0.1995 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128F2B #8F1276
analogous
#388F12 #128F2B #128F6A
triadic
#128F2B #2B128F #8F2B12
tetradic
#128F2B #12388F #8F1276 #8F6A12
square
#128F2B #12388F #8F1276 #8F6A12
split-complementary
#128F2B #6A128F #8F1238
monochromatic
#04220A #0B591B #128F2B #19C53B #36E659

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##128F2B#FFFFFF#000000##000000
##128F2B1.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)
#91811D
Deuteranopia (green-blind)
#857835
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #128f2b;
/* rgb */ color: rgb(18, 143, 43);
/* oklch */ color: oklch(56.7% 0.171 145.1);
Tailwind
colors: {
  custom: {
    50: '#6cb16a',
    500: '#128f2b',
    950: '#000000',
  },
}
SCSS
$custom: #128f2b;
$custom-light: #6cb16a;
$custom-dark: #000000;
JSON
{
  "hex": "#128f2b",
  "rgb": {
    "r": 18,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 132,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56716,
    "c": 0.17132,
    "h": 145.1
  },
  "luminance": 0.19948
}

Semantic roles & 50–950 ramp

primary
#128F2B
secondary
#C33AA8
accent
#34CEF4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081107
muted
#7B807A

Preview Lab

Preview with #128F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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