#128F21#128F21

#128F21 is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.6% C 0.178 H 143.9°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#128F21
RGBrgb(18, 143, 33)
HSLhsl(127, 78%, 32%)
HSVhsv(127, 87%, 56%)
CMYKcmyk(87.4%, 0%, 76.9%, 43.9%)
CIE-LABlab(51.70, -53.09, 46.42)
CIE-LCHlch(51.70, 70.52, 138.84°)
OKLaboklab(56.63% -0.1435 0.1047)
OKLCHoklch(56.63% 0.178 143.9)
XYZxyz(10.3457, 19.8820, 4.7309)
Luminance0.1988 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128F21 #8F1280
analogous
#428F12 #128F21 #128F60
triadic
#128F21 #21128F #8F2112
tetradic
#128F21 #12428F #8F1280 #8F6012
square
#128F21 #12428F #8F1280 #8F6012
split-complementary
#128F21 #60128F #8F1242
monochromatic
#042208 #0B5914 #128F21 #19C52E #36E64B

Accessibility & contrast

On white

4.22
#128F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#128F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128F21
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128F21#FFFFFF#000000##000000
##128F211.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928109
Deuteranopia (green-blind)
#85782D
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #128f21;
/* rgb */ color: rgb(18, 143, 33);
/* oklch */ color: oklch(56.6% 0.178 143.9);
Tailwind
colors: {
  custom: {
    50: '#6cb164',
    500: '#128f21',
    950: '#000000',
  },
}
SCSS
$custom: #128f21;
$custom-light: #6cb164;
$custom-dark: #000000;
JSON
{
  "hex": "#128f21",
  "rgb": {
    "r": 18,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 127.2,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56631,
    "c": 0.17763,
    "h": 143.9
  },
  "luminance": 0.19883
}

Semantic roles & 50–950 ramp

primary
#128F21
secondary
#C33AB3
accent
#34DDF4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081106
muted
#7B807A

Preview Lab

Preview with #128F21

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

Preview Lab → · Contrast checker → · Palette generator →

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