#128F2D#128F2D

#128F2D is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.7% C 0.170 H 145.4°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#128F2D
RGBrgb(18, 143, 45)
HSLhsl(133, 78%, 32%)
HSVhsv(133, 87%, 56%)
CMYKcmyk(87.4%, 0%, 68.5%, 43.9%)
CIE-LABlab(51.79, -51.96, 41.72)
CIE-LCHlch(51.79, 66.64, 141.24°)
OKLaboklab(56.74% -0.1399 0.0964)
OKLCHoklch(56.74% 0.17 145.4)
XYZxyz(10.5448, 19.9616, 5.7793)
Luminance0.1996 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128F2D #8F1274
analogous
#368F12 #128F2D #128F6C
triadic
#128F2D #2D128F #8F2D12
tetradic
#128F2D #12368F #8F1274 #8F6C12
square
#128F2D #12368F #8F1274 #8F6C12
split-complementary
#128F2D #6C128F #8F1236
monochromatic
#04220B #0B591C #128F2D #19C53E #36E65C

Accessibility & contrast

On white

4.21
#128F2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#128F2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128F2D
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128F2D#FFFFFF#000000##000000
##128F2D1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#918120
Deuteranopia (green-blind)
#847836
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #128f2d;
/* rgb */ color: rgb(18, 143, 45);
/* oklch */ color: oklch(56.7% 0.170 145.4);
Tailwind
colors: {
  custom: {
    50: '#6cb16b',
    500: '#128f2d',
    950: '#000000',
  },
}
SCSS
$custom: #128f2d;
$custom-light: #6cb16b;
$custom-dark: #000000;
JSON
{
  "hex": "#128f2d",
  "rgb": {
    "r": 18,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 132.96,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56735,
    "c": 0.1699,
    "h": 145.4
  },
  "luminance": 0.19963
}

Semantic roles & 50–950 ramp

primary
#128F2D
secondary
#C33AA5
accent
#34CBF4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081107
muted
#7B807A

Preview Lab

Preview with #128F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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