#128F28#128F28

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

Color values

HEX#128F28
RGBrgb(18, 143, 40)
HSLhsl(131, 78%, 32%)
HSVhsv(131, 87%, 56%)
CMYKcmyk(87.4%, 0%, 72%, 43.9%)
CIE-LABlab(51.75, -52.47, 43.78)
CIE-LCHlch(51.75, 68.34, 140.16°)
OKLaboklab(56.69% -0.1415 0.1001)
OKLCHoklch(56.69% 0.173 144.7)
XYZxyz(10.4542, 19.9254, 5.3021)
Luminance0.1993 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128F28 #8F1279
analogous
#3B8F12 #128F28 #128F67
triadic
#128F28 #28128F #8F2812
tetradic
#128F28 #123B8F #8F1279 #8F6712
square
#128F28 #123B8F #8F1279 #8F6712
split-complementary
#128F28 #67128F #8F123B
monochromatic
#04220A #0B5919 #128F28 #19C537 #36E655

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##128F28#FFFFFF#000000##000000
##128F281.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)
#928118
Deuteranopia (green-blind)
#857832
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #128f28;
/* rgb */ color: rgb(18, 143, 40);
/* oklch */ color: oklch(56.7% 0.173 144.7);
Tailwind
colors: {
  custom: {
    50: '#6cb168',
    500: '#128f28',
    950: '#000000',
  },
}
SCSS
$custom: #128f28;
$custom-light: #6cb168;
$custom-dark: #000000;
JSON
{
  "hex": "#128f28",
  "rgb": {
    "r": 18,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 130.56,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56688,
    "c": 0.17334,
    "h": 144.7
  },
  "luminance": 0.19927
}

Semantic roles & 50–950 ramp

primary
#128F28
secondary
#C33AAB
accent
#34D2F4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081106
muted
#7B807A

Preview Lab

Preview with #128F28

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

Preview Lab → · Contrast checker → · Palette generator →

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