#128E1C#128E1C

#128E1C is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.3% C 0.179 H 143.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#128E1C
RGBrgb(18, 142, 28)
HSLhsl(125, 78%, 31%)
HSVhsv(125, 87%, 56%)
CMYKcmyk(87.3%, 0%, 80.3%, 44.3%)
CIE-LABlab(51.33, -53.16, 47.78)
CIE-LCHlch(51.33, 71.47, 138.05°)
OKLaboklab(56.31% -0.1439 0.1068)
OKLCHoklch(56.31% 0.179 143.4)
XYZxyz(10.1314, 19.5572, 4.3393)
Luminance0.1956 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128E1C #8E1284
analogous
#468E12 #128E1C #128E5A
triadic
#128E1C #1C128E #8E1C12
tetradic
#128E1C #12468E #8E1284 #8E5A12
square
#128E1C #12468E #8E1284 #8E5A12
split-complementary
#128E1C #5A128E #8E1246
monochromatic
#042107 #0B5811 #128E1C #19C427 #35E543

Accessibility & contrast

On white

4.28
#128E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#128E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128E1C
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128E1C#FFFFFF#000000##000000
##128E1C1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#84772A
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #128e1c;
/* rgb */ color: rgb(18, 142, 28);
/* oklch */ color: oklch(56.3% 0.179 143.4);
Tailwind
colors: {
  custom: {
    50: '#6cb062',
    500: '#128e1c',
    950: '#000000',
  },
}
SCSS
$custom: #128e1c;
$custom-light: #6cb062;
$custom-dark: #000000;
JSON
{
  "hex": "#128e1c",
  "rgb": {
    "r": 18,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 124.839,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56313,
    "c": 0.1792,
    "h": 143.4
  },
  "luminance": 0.19558
}

Semantic roles & 50–950 ramp

primary
#128E1C
secondary
#C23AB7
accent
#34E5F4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081105
muted
#7B807A

Preview Lab

Preview with #128E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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