#128D2F#128D2F

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

Color values

HEX#128D2F
RGBrgb(18, 141, 47)
HSLhsl(134, 77%, 31%)
HSVhsv(134, 87%, 55%)
CMYKcmyk(87.2%, 0%, 66.7%, 44.7%)
CIE-LABlab(51.13, -51.08, 40.11)
CIE-LCHlch(51.13, 64.95, 141.86°)
OKLaboklab(56.19% -0.1374 0.0932)
OKLCHoklch(56.19% 0.166 145.9)
XYZxyz(10.2866, 19.3823, 5.8878)
Luminance0.1938 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128D2F #8D1270
analogous
#338D12 #128D2F #128D6C
triadic
#128D2F #2F128D #8D2F12
tetradic
#128D2F #12338D #8D1270 #8D6C12
square
#128D2F #12338D #8D1270 #8D6C12
split-complementary
#128D2F #6C128D #8D1233
monochromatic
#04200B #0B571D #128D2F #19C341 #34E55E

Accessibility & contrast

On white

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

On black

4.88
#128D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128D2F
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128D2F#FFFFFF#000000##000000
##128D2F1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #128d2f;
/* rgb */ color: rgb(18, 141, 47);
/* oklch */ color: oklch(56.2% 0.166 145.9);
Tailwind
colors: {
  custom: {
    50: '#6bb06c',
    500: '#128d2f',
    950: '#000000',
  },
}
SCSS
$custom: #128d2f;
$custom-light: #6bb06c;
$custom-dark: #000000;
JSON
{
  "hex": "#128d2f",
  "rgb": {
    "r": 18,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 134.146,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5619,
    "c": 0.16606,
    "h": 145.9
  },
  "luminance": 0.19384
}

Semantic roles & 50–950 ramp

primary
#128D2F
secondary
#C139A1
accent
#34C7F4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081107
muted
#7B807A

Preview Lab

Preview with #128D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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