#128C1B#128C1B

#128C1B 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#128C1B
RGBrgb(18, 140, 27)
HSLhsl(124, 77%, 31%)
HSVhsv(124, 87%, 55%)
CMYKcmyk(87.1%, 0%, 80.7%, 45.1%)
CIE-LABlab(50.64, -52.60, 47.44)
CIE-LCHlch(50.64, 70.83, 137.95°)
OKLaboklab(55.74% -0.1424 0.106)
OKLCHoklch(55.74% 0.178 143.3)
XYZxyz(9.8247, 18.9627, 4.1791)
Luminance0.1896 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128C1B #8C1283
analogous
#468C12 #128C1B #128C58
triadic
#128C1B #1B128C #8C1B12
tetradic
#128C1B #12468C #8C1283 #8C5812
square
#128C1B #12468C #8C1283 #8C5812
split-complementary
#128C1B #58128C #8C1246
monochromatic
#042006 #0B5611 #128C1B #19C225 #34E541

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##128C1B#FFFFFF#000000##000000
##128C1B1.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)
#837529
Tritanopia (blue-blind)
#008877
Achromatopsia (no color)
#797979

Design tokens & code

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

Semantic roles & 50–950 ramp

primary
#128C1B
secondary
#C039B6
accent
#34E6F4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #128C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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