#127E12#127E12

#127E12 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.7% C 0.166 H 142.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#127E12
RGBrgb(18, 126, 18)
HSLhsl(120, 75%, 28%)
HSVhsv(120, 86%, 49%)
CMYKcmyk(85.7%, 0%, 85.7%, 50.6%)
CIE-LABlab(45.76, -48.76, 45.59)
CIE-LCHlch(45.76, 66.75, 136.92°)
OKLaboklab(51.66% -0.1323 0.1008)
OKLCHoklch(51.66% 0.166 142.7)
XYZxyz(7.8190, 15.0930, 3.0733)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127E12 #7E127E
analogous
#487E12 #127E12 #127E48
triadic
#127E12 #12127E #7E1212
tetradic
#127E12 #12487E #7E127E #7E4812
square
#127E12 #12487E #7E127E #7E4812
split-complementary
#127E12 #48127E #7E1248
monochromatic
#041B04 #0A480A #127E12 #1AB41A #2AE12A

Accessibility & contrast

On white

5.23
#127E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#127E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127E12
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127E12#FFFFFF#000000##FFFFFF
##127E121.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#766920
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #127e12;
/* rgb */ color: rgb(18, 126, 18);
/* oklch */ color: oklch(51.7% 0.166 142.7);
Tailwind
colors: {
  custom: {
    50: '#68a55b',
    500: '#127e12',
    950: '#000000',
  },
}
SCSS
$custom: #127e12;
$custom-light: #68a55b;
$custom-dark: #000000;
JSON
{
  "hex": "#127e12",
  "rgb": {
    "r": 18,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 120,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51656,
    "c": 0.16637,
    "h": 142.7
  },
  "luminance": 0.15094
}

Semantic roles & 50–950 ramp

primary
#127E12
secondary
#B438B4
accent
#36F2F2
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#070F04
muted
#7A7F79

Preview Lab

Preview with #127E12

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

Preview Lab → · Contrast checker → · Palette generator →

#127E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva