#127E2A#127E2A

#127E2A is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.8% C 0.152 H 145.8°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#127E2A
RGBrgb(18, 126, 42)
HSLhsl(133, 75%, 28%)
HSVhsv(133, 86%, 49%)
CMYKcmyk(85.7%, 0%, 66.7%, 50.6%)
CIE-LABlab(45.93, -46.66, 36.62)
CIE-LCHlch(45.93, 59.31, 141.87°)
OKLaboklab(51.85% -0.1256 0.0853)
OKLCHoklch(51.85% 0.152 145.8)
XYZxyz(8.1276, 15.2165, 4.6988)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127E2A #7E1266
analogous
#307E12 #127E2A #127E60
triadic
#127E2A #2A127E #7E2A12
tetradic
#127E2A #12307E #7E1266 #7E6012
square
#127E2A #12307E #7E1266 #7E6012
split-complementary
#127E2A #60127E #7E1230
monochromatic
#041B09 #0A4818 #127E2A #1AB43C #2AE152

Accessibility & contrast

On white

5.19
#127E2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#127E2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127E2A
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127E2A#FFFFFF#000000##FFFFFF
##127E2A1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807220
Deuteranopia (green-blind)
#756A32
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #127e2a;
/* rgb */ color: rgb(18, 126, 42);
/* oklch */ color: oklch(51.8% 0.152 145.8);
Tailwind
colors: {
  custom: {
    50: '#67a467',
    500: '#127e2a',
    950: '#000000',
  },
}
SCSS
$custom: #127e2a;
$custom-light: #67a467;
$custom-dark: #000000;
JSON
{
  "hex": "#127e2a",
  "rgb": {
    "r": 18,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 133.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51849,
    "c": 0.15179,
    "h": 145.8
  },
  "luminance": 0.15217
}

Semantic roles & 50–950 ramp

primary
#127E2A
secondary
#B43898
accent
#36C8F2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #127E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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