#128E1F#128E1F

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

Color values

HEX#128E1F
RGBrgb(18, 142, 31)
HSLhsl(126, 78%, 31%)
HSVhsv(126, 87%, 56%)
CMYKcmyk(87.3%, 0%, 78.2%, 44.3%)
CIE-LABlab(51.35, -52.94, 46.78)
CIE-LCHlch(51.35, 70.64, 138.53°)
OKLaboklab(56.33% -0.1432 0.1052)
OKLCHoklch(56.33% 0.178 143.7)
XYZxyz(10.1691, 19.5722, 4.5379)
Luminance0.1957 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128E1F #8E1281
analogous
#438E12 #128E1F #128E5D
triadic
#128E1F #1F128E #8E1F12
tetradic
#128E1F #12438E #8E1281 #8E5D12
square
#128E1F #12438E #8E1281 #8E5D12
split-complementary
#128E1F #5D128E #8E1243
monochromatic
#042107 #0B5813 #128E1F #19C42B #35E547

Accessibility & contrast

On white

4.27
#128E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##128E1F#FFFFFF#000000##000000
##128E1F1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #128e1f;
/* rgb */ color: rgb(18, 142, 31);
/* oklch */ color: oklch(56.3% 0.178 143.7);
Tailwind
colors: {
  custom: {
    50: '#6cb063',
    500: '#128e1f',
    950: '#000000',
  },
}
SCSS
$custom: #128e1f;
$custom-light: #6cb063;
$custom-dark: #000000;
JSON
{
  "hex": "#128e1f",
  "rgb": {
    "r": 18,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 126.29,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56333,
    "c": 0.17764,
    "h": 143.7
  },
  "luminance": 0.19574
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #128E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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