#128012#128012

#128012 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.2% C 0.169 H 142.7°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#128012
RGBrgb(18, 128, 18)
HSLhsl(120, 75%, 29%)
HSVhsv(120, 86%, 50%)
CMYKcmyk(85.9%, 0%, 85.9%, 49.8%)
CIE-LABlab(46.46, -49.39, 46.23)
CIE-LCHlch(46.46, 67.65, 136.89°)
OKLaboklab(52.24% -0.134 0.1022)
OKLCHoklch(52.24% 0.169 142.7)
XYZxyz(8.0773, 15.6096, 3.1594)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#128012 #801280
analogous
#498012 #128012 #128049
triadic
#128012 #121280 #801212
tetradic
#128012 #124980 #801280 #804912
square
#128012 #124980 #801280 #804912
split-complementary
#128012 #491280 #801249
monochromatic
#041B04 #0A4A0A #128012 #1AB61A #2BE12B

Accessibility & contrast

On white

5.09
#128012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#128012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #128012
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##128012#FFFFFF#000000##FFFFFF
##1280121.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#786B21
Tritanopia (blue-blind)
#007C6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #128012;
/* rgb */ color: rgb(18, 128, 18);
/* oklch */ color: oklch(52.2% 0.169 142.7);
Tailwind
colors: {
  custom: {
    50: '#69a65c',
    500: '#128012',
    950: '#000000',
  },
}
SCSS
$custom: #128012;
$custom-light: #69a65c;
$custom-dark: #000000;
JSON
{
  "hex": "#128012",
  "rgb": {
    "r": 18,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 120,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52236,
    "c": 0.16855,
    "h": 142.7
  },
  "luminance": 0.15611
}

Semantic roles & 50–950 ramp

primary
#128012
secondary
#B638B6
accent
#36F2F2
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #128012

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

Preview Lab → · Contrast checker → · Palette generator →

#128012 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva