#128F1F#128F1F

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

Color values

HEX#128F1F
RGBrgb(18, 143, 31)
HSLhsl(126, 78%, 32%)
HSVhsv(126, 87%, 56%)
CMYKcmyk(87.4%, 0%, 78.3%, 43.9%)
CIE-LABlab(51.69, -53.25, 47.11)
CIE-LCHlch(51.69, 71.10, 138.50°)
OKLaboklab(56.62% -0.144 0.1059)
OKLCHoklch(56.62% 0.179 143.7)
XYZxyz(10.3185, 19.8711, 4.5877)
Luminance0.1987 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128F1F #8F1282
analogous
#448F12 #128F1F #128F5E
triadic
#128F1F #1F128F #8F1F12
tetradic
#128F1F #12448F #8F1282 #8F5E12
square
#128F1F #12448F #8F1282 #8F5E12
split-complementary
#128F1F #5E128F #8F1244
monochromatic
#042207 #0B5913 #128F1F #19C52B #36E648

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##128F1F#FFFFFF#000000##000000
##128F1F1.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)
#928104
Deuteranopia (green-blind)
#85782C
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #128f1f;
/* rgb */ color: rgb(18, 143, 31);
/* oklch */ color: oklch(56.6% 0.179 143.7);
Tailwind
colors: {
  custom: {
    50: '#6cb163',
    500: '#128f1f',
    950: '#000000',
  },
}
SCSS
$custom: #128f1f;
$custom-light: #6cb163;
$custom-dark: #000000;
JSON
{
  "hex": "#128f1f",
  "rgb": {
    "r": 18,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 126.24,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56617,
    "c": 0.17873,
    "h": 143.7
  },
  "luminance": 0.19872
}

Semantic roles & 50–950 ramp

primary
#128F1F
secondary
#C33AB5
accent
#34E0F4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081106
muted
#7B807A

Preview Lab

Preview with #128F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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