#128C1C#128C1C

#128C1C is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.7% C 0.177 H 143.4°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#128C1C
RGBrgb(18, 140, 28)
HSLhsl(125, 77%, 31%)
HSVhsv(125, 87%, 55%)
CMYKcmyk(87.1%, 0%, 80%, 45.1%)
CIE-LABlab(50.65, -52.53, 47.12)
CIE-LCHlch(50.65, 70.57, 138.11°)
OKLaboklab(55.74% -0.1422 0.1055)
OKLCHoklch(55.74% 0.177 143.4)
XYZxyz(9.8365, 18.9674, 4.2410)
Luminance0.1897 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128C1C #8C1282
analogous
#458C12 #128C1C #128C59
triadic
#128C1C #1C128C #8C1C12
tetradic
#128C1C #12458C #8C1282 #8C5912
square
#128C1C #12458C #8C1282 #8C5912
split-complementary
#128C1C #59128C #8C1245
monochromatic
#042006 #0B5611 #128C1C #19C227 #34E542

Accessibility & contrast

On white

4.38
#128C1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#128C1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128C1C
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128C1C#FFFFFF#000000##000000
##128C1C1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#837529
Tritanopia (blue-blind)
#008877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #128c1c;
/* rgb */ color: rgb(18, 140, 28);
/* oklch */ color: oklch(55.7% 0.177 143.4);
Tailwind
colors: {
  custom: {
    50: '#6caf62',
    500: '#128c1c',
    950: '#000000',
  },
}
SCSS
$custom: #128c1c;
$custom-light: #6caf62;
$custom-dark: #000000;
JSON
{
  "hex": "#128c1c",
  "rgb": {
    "r": 18,
    "g": 140,
    "b": 28
  },
  "hsl": {
    "h": 124.918,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55743,
    "c": 0.17702,
    "h": 143.4
  },
  "luminance": 0.18969
}

Semantic roles & 50–950 ramp

primary
#128C1C
secondary
#C039B5
accent
#34E4F4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #128C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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