#128C2B#128C2B

#128C2B is a mid, vivid green. Relative luminance 0.191; OKLCH L 55.9% C 0.168 H 145.3°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#128C2B
RGBrgb(18, 140, 43)
HSLhsl(132, 77%, 31%)
HSVhsv(132, 87%, 55%)
CMYKcmyk(87.1%, 0%, 69.3%, 45.1%)
CIE-LABlab(50.75, -51.20, 41.46)
CIE-LCHlch(50.75, 65.88, 141.00°)
OKLaboklab(55.86% -0.1379 0.0956)
OKLCHoklch(55.86% 0.168 145.3)
XYZxyz(10.0628, 19.0579, 5.4332)
Luminance0.1906 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128C2B #8C1273
analogous
#368C12 #128C2B #128C68
triadic
#128C2B #2B128C #8C2B12
tetradic
#128C2B #12368C #8C1273 #8C6812
square
#128C2B #12368C #8C1273 #8C6812
split-complementary
#128C2B #68128C #8C1236
monochromatic
#04200A #0B561A #128C2B #19C23C #34E558

Accessibility & contrast

On white

4.36
#128C2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#128C2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128C2B
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128C2B#FFFFFF#000000##000000
##128C2B1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1E
Deuteranopia (green-blind)
#827534
Tritanopia (blue-blind)
#008878
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #128c2b;
/* rgb */ color: rgb(18, 140, 43);
/* oklch */ color: oklch(55.9% 0.168 145.3);
Tailwind
colors: {
  custom: {
    50: '#6baf69',
    500: '#128c2b',
    950: '#000000',
  },
}
SCSS
$custom: #128c2b;
$custom-light: #6baf69;
$custom-dark: #000000;
JSON
{
  "hex": "#128c2b",
  "rgb": {
    "r": 18,
    "g": 140,
    "b": 43
  },
  "hsl": {
    "h": 132.295,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55865,
    "c": 0.16781,
    "h": 145.3
  },
  "luminance": 0.19059
}

Semantic roles & 50–950 ramp

primary
#128C2B
secondary
#C039A5
accent
#34CCF4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #128C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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