#127E20#127E20

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

Color values

HEX#127E20
RGBrgb(18, 126, 32)
HSLhsl(128, 75%, 28%)
HSVhsv(128, 86%, 49%)
CMYKcmyk(85.7%, 0%, 74.6%, 50.6%)
CIE-LABlab(45.84, -47.72, 40.86)
CIE-LCHlch(45.84, 62.82, 139.42°)
OKLaboklab(51.75% -0.1289 0.093)
OKLCHoklch(51.75% 0.159 144.2)
XYZxyz(7.9705, 15.1536, 3.8711)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127E20 #7E1270
analogous
#3A7E12 #127E20 #127E56
triadic
#127E20 #20127E #7E2012
tetradic
#127E20 #123A7E #7E1270 #7E5612
square
#127E20 #123A7E #7E1270 #7E5612
split-complementary
#127E20 #56127E #7E123A
monochromatic
#041B07 #0A4812 #127E20 #1AB42E #2AE142

Accessibility & contrast

On white

5.21
#127E20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#127E20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127E20
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127E20#FFFFFF#000000##FFFFFF
##127E201.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807110
Deuteranopia (green-blind)
#75692A
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #127e20;
/* rgb */ color: rgb(18, 126, 32);
/* oklch */ color: oklch(51.8% 0.159 144.2);
Tailwind
colors: {
  custom: {
    50: '#67a462',
    500: '#127e20',
    950: '#000000',
  },
}
SCSS
$custom: #127e20;
$custom-light: #67a462;
$custom-dark: #000000;
JSON
{
  "hex": "#127e20",
  "rgb": {
    "r": 18,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 127.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51751,
    "c": 0.15892,
    "h": 144.2
  },
  "luminance": 0.15155
}

Semantic roles & 50–950 ramp

primary
#127E20
secondary
#B438A4
accent
#36D9F2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #127E20

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

Preview Lab → · Contrast checker → · Palette generator →

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