#128C1A#128C1A

#128C1A is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.7% C 0.178 H 143.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#128C1A
RGBrgb(18, 140, 26)
HSLhsl(124, 77%, 31%)
HSVhsv(124, 87%, 55%)
CMYKcmyk(87.1%, 0%, 81.4%, 45.1%)
CIE-LABlab(50.64, -52.67, 47.75)
CIE-LCHlch(50.64, 71.09, 137.80°)
OKLaboklab(55.73% -0.1426 0.1065)
OKLCHoklch(55.73% 0.178 143.3)
XYZxyz(9.8133, 18.9581, 4.1192)
Luminance0.1896 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128C1A #8C1284
analogous
#478C12 #128C1A #128C57
triadic
#128C1A #1A128C #8C1A12
tetradic
#128C1A #12478C #8C1284 #8C5712
square
#128C1A #12478C #8C1284 #8C5712
split-complementary
#128C1A #57128C #8C1247
monochromatic
#042006 #0B5610 #128C1A #19C224 #34E53F

Accessibility & contrast

On white

4.38
#128C1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#128C1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128C1A
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128C1A#FFFFFF#000000##000000
##128C1A1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#837528
Tritanopia (blue-blind)
#008877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #128c1a;
/* rgb */ color: rgb(18, 140, 26);
/* oklch */ color: oklch(55.7% 0.178 143.3);
Tailwind
colors: {
  custom: {
    50: '#6caf61',
    500: '#128c1a',
    950: '#000000',
  },
}
SCSS
$custom: #128c1a;
$custom-light: #6caf61;
$custom-dark: #000000;
JSON
{
  "hex": "#128c1a",
  "rgb": {
    "r": 18,
    "g": 140,
    "b": 26
  },
  "hsl": {
    "h": 123.934,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55731,
    "c": 0.17801,
    "h": 143.3
  },
  "luminance": 0.18959
}

Semantic roles & 50–950 ramp

primary
#128C1A
secondary
#C039B8
accent
#34E7F4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #128C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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