#128F1C#128F1C

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

Color values

HEX#128F1C
RGBrgb(18, 143, 28)
HSLhsl(125, 78%, 32%)
HSVhsv(125, 87%, 56%)
CMYKcmyk(87.4%, 0%, 80.4%, 43.9%)
CIE-LABlab(51.67, -53.47, 48.10)
CIE-LCHlch(51.67, 71.92, 138.02°)
OKLaboklab(56.6% -0.1447 0.1075)
OKLCHoklch(56.6% 0.18 143.4)
XYZxyz(10.2808, 19.8561, 4.3891)
Luminance0.1986 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128F1C #8F1285
analogous
#478F12 #128F1C #128F5B
triadic
#128F1C #1C128F #8F1C12
tetradic
#128F1C #12478F #8F1285 #8F5B12
square
#128F1C #12478F #8F1285 #8F5B12
split-complementary
#128F1C #5B128F #8F1247
monochromatic
#042207 #0B5911 #128F1C #19C527 #36E644

Accessibility & contrast

On white

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

On black

4.97
#128F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128F1C
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128F1C#FFFFFF#000000##000000
##128F1C1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #128f1c;
/* rgb */ color: rgb(18, 143, 28);
/* oklch */ color: oklch(56.6% 0.180 143.4);
Tailwind
colors: {
  custom: {
    50: '#6cb162',
    500: '#128f1c',
    950: '#000000',
  },
}
SCSS
$custom: #128f1c;
$custom-light: #6cb162;
$custom-dark: #000000;
JSON
{
  "hex": "#128f1c",
  "rgb": {
    "r": 18,
    "g": 143,
    "b": 28
  },
  "hsl": {
    "h": 124.8,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56597,
    "c": 0.18029,
    "h": 143.4
  },
  "luminance": 0.19857
}

Semantic roles & 50–950 ramp

primary
#128F1C
secondary
#C33AB8
accent
#34E5F4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081106
muted
#7B807A

Preview Lab

Preview with #128F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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