#128F12#128F12

#128F12 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.5% C 0.185 H 142.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#128F12
RGBrgb(18, 143, 18)
HSLhsl(120, 78%, 32%)
HSVhsv(120, 87%, 56%)
CMYKcmyk(87.4%, 0%, 87.4%, 43.9%)
CIE-LABlab(51.63, -54.05, 50.90)
CIE-LCHlch(51.63, 74.24, 136.72°)
OKLaboklab(56.55% -0.1467 0.112)
OKLCHoklch(56.55% 0.185 142.6)
XYZxyz(10.1804, 19.8159, 3.8605)
Luminance0.1982 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128F12 #8F128F
analogous
#518F12 #128F12 #128F51
triadic
#128F12 #12128F #8F1212
tetradic
#128F12 #12518F #8F128F #8F5112
square
#128F12 #12518F #8F128F #8F5112
split-complementary
#128F12 #51128F #8F1251
monochromatic
#042204 #0B590B #128F12 #19C519 #36E636

Accessibility & contrast

On white

4.23
#128F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#128F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #128F12
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128F12#FFFFFF#000000##000000
##128F121.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #128f12;
/* rgb */ color: rgb(18, 143, 18);
/* oklch */ color: oklch(56.5% 0.185 142.6);
Tailwind
colors: {
  custom: {
    50: '#6db15e',
    500: '#128f12',
    950: '#000000',
  },
}
SCSS
$custom: #128f12;
$custom-light: #6db15e;
$custom-dark: #000000;
JSON
{
  "hex": "#128f12",
  "rgb": {
    "r": 18,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 120,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56545,
    "c": 0.18454,
    "h": 142.6
  },
  "luminance": 0.19817
}

Semantic roles & 50–950 ramp

primary
#128F12
secondary
#C33AC3
accent
#34F4F4
background
#F7FBF5
surface
#EDF6EA
border
#C8D0C6
text
#081105
muted
#7B8079

Preview Lab

Preview with #128F12

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

Preview Lab → · Contrast checker → · Palette generator →

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