#128D2E#128D2E

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

Color values

HEX#128D2E
RGBrgb(18, 141, 46)
HSLhsl(134, 77%, 31%)
HSVhsv(134, 87%, 55%)
CMYKcmyk(87.2%, 0%, 67.4%, 44.7%)
CIE-LABlab(51.12, -51.20, 40.55)
CIE-LCHlch(51.12, 65.31, 141.62°)
OKLaboklab(56.18% -0.1378 0.094)
OKLCHoklch(56.18% 0.167 145.7)
XYZxyz(10.2667, 19.3743, 5.7828)
Luminance0.1938 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128D2E #8D1271
analogous
#338D12 #128D2E #128D6B
triadic
#128D2E #2E128D #8D2E12
tetradic
#128D2E #12338D #8D1271 #8D6B12
square
#128D2E #12338D #8D1271 #8D6B12
split-complementary
#128D2E #6B128D #8D1233
monochromatic
#04200B #0B571C #128D2E #19C340 #34E55D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##128D2E#FFFFFF#000000##000000
##128D2E1.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)
#8F7F22
Deuteranopia (green-blind)
#837637
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #128d2e;
/* rgb */ color: rgb(18, 141, 46);
/* oklch */ color: oklch(56.2% 0.167 145.7);
Tailwind
colors: {
  custom: {
    50: '#6bb06b',
    500: '#128d2e',
    950: '#000000',
  },
}
SCSS
$custom: #128d2e;
$custom-light: #6bb06b;
$custom-dark: #000000;
JSON
{
  "hex": "#128d2e",
  "rgb": {
    "r": 18,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 133.659,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5618,
    "c": 0.16681,
    "h": 145.7
  },
  "luminance": 0.19376
}

Semantic roles & 50–950 ramp

primary
#128D2E
secondary
#C139A2
accent
#34C8F4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081107
muted
#7B807A

Preview Lab

Preview with #128D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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