#128D2C#128D2C

#128D2C is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.2% C 0.168 H 145.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#128D2C
RGBrgb(18, 141, 44)
HSLhsl(133, 77%, 31%)
HSVhsv(133, 87%, 55%)
CMYKcmyk(87.2%, 0%, 68.8%, 44.7%)
CIE-LABlab(51.10, -51.42, 41.41)
CIE-LCHlch(51.10, 66.02, 141.15°)
OKLaboklab(56.16% -0.1385 0.0956)
OKLCHoklch(56.16% 0.168 145.4)
XYZxyz(10.2282, 19.3589, 5.5800)
Luminance0.1936 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128D2C #8D1273
analogous
#358D12 #128D2C #128D69
triadic
#128D2C #2C128D #8D2C12
tetradic
#128D2C #12358D #8D1273 #8D6912
square
#128D2C #12358D #8D1273 #8D6912
split-complementary
#128D2C #69128D #8D1235
monochromatic
#04200A #0B571B #128D2C #19C33D #34E55A

Accessibility & contrast

On white

4.31
#128D2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#128D2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128D2C
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128D2C#FFFFFF#000000##000000
##128D2C1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1F
Deuteranopia (green-blind)
#837635
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #128d2c;
/* rgb */ color: rgb(18, 141, 44);
/* oklch */ color: oklch(56.2% 0.168 145.4);
Tailwind
colors: {
  custom: {
    50: '#6bb06a',
    500: '#128d2c',
    950: '#000000',
  },
}
SCSS
$custom: #128d2c;
$custom-light: #6bb06a;
$custom-dark: #000000;
JSON
{
  "hex": "#128d2c",
  "rgb": {
    "r": 18,
    "g": 141,
    "b": 44
  },
  "hsl": {
    "h": 132.683,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56159,
    "c": 0.16827,
    "h": 145.4
  },
  "luminance": 0.1936
}

Semantic roles & 50–950 ramp

primary
#128D2C
secondary
#C139A5
accent
#34CBF4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081107
muted
#7B807A

Preview Lab

Preview with #128D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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