#127E1C#127E1C

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

Color values

HEX#127E1C
RGBrgb(18, 126, 28)
HSLhsl(126, 75%, 28%)
HSVhsv(126, 86%, 49%)
CMYKcmyk(85.7%, 0%, 77.8%, 50.6%)
CIE-LABlab(45.82, -48.06, 42.38)
CIE-LCHlch(45.82, 64.08, 138.60°)
OKLaboklab(51.72% -0.13 0.0956)
OKLCHoklch(51.72% 0.161 143.7)
XYZxyz(7.9194, 15.1332, 3.6020)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127E1C #7E1274
analogous
#3E7E12 #127E1C #127E52
triadic
#127E1C #1C127E #7E1C12
tetradic
#127E1C #123E7E #7E1274 #7E5212
square
#127E1C #123E7E #7E1274 #7E5212
split-complementary
#127E1C #52127E #7E123E
monochromatic
#041B06 #0A4810 #127E1C #1AB428 #2AE13B

Accessibility & contrast

On white

5.22
#127E1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #127E1C
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127E1C#FFFFFF#000000##FFFFFF
##127E1C1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #127e1c;
/* rgb */ color: rgb(18, 126, 28);
/* oklch */ color: oklch(51.7% 0.161 143.7);
Tailwind
colors: {
  custom: {
    50: '#68a460',
    500: '#127e1c',
    950: '#000000',
  },
}
SCSS
$custom: #127e1c;
$custom-light: #68a460;
$custom-dark: #000000;
JSON
{
  "hex": "#127e1c",
  "rgb": {
    "r": 18,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 125.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51719,
    "c": 0.16137,
    "h": 143.7
  },
  "luminance": 0.15134
}

Semantic roles & 50–950 ramp

primary
#127E1C
secondary
#B438A8
accent
#36E0F2
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #127E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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