#127A1F#127A1F

#127A1F is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.6% C 0.155 H 144.2°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#127A1F
RGBrgb(18, 122, 31)
HSLhsl(128, 74%, 27%)
HSVhsv(128, 85%, 48%)
CMYKcmyk(85.2%, 0%, 74.6%, 52.2%)
CIE-LABlab(44.44, -46.49, 39.82)
CIE-LCHlch(44.44, 61.21, 139.42°)
OKLaboklab(50.58% -0.1256 0.0906)
OKLCHoklch(50.58% 0.155 144.2)
XYZxyz(7.4558, 14.1457, 3.6335)
Luminance0.1415 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127A1F #7A126D
analogous
#397A12 #127A1F #127A53
triadic
#127A1F #1F127A #7A1F12
tetradic
#127A1F #12397A #7A126D #7A5312
square
#127A1F #12397A #7A126D #7A5312
split-complementary
#127A1F #53127A #7A1239
monochromatic
#041B07 #0A4511 #127A1F #1AAF2D #27DF3E

Accessibility & contrast

On white

5.48
#127A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#127A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127A1F
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127A1F#FFFFFF#000000##FFFFFF
##127A1F1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#716628
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #127a1f;
/* rgb */ color: rgb(18, 122, 31);
/* oklch */ color: oklch(50.6% 0.155 144.2);
Tailwind
colors: {
  custom: {
    50: '#66a261',
    500: '#127a1f',
    950: '#000000',
  },
}
SCSS
$custom: #127a1f;
$custom-light: #66a261;
$custom-dark: #000000;
JSON
{
  "hex": "#127a1f",
  "rgb": {
    "r": 18,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 127.5,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.50581,
    "c": 0.15488,
    "h": 144.2
  },
  "luminance": 0.14147
}

Semantic roles & 50–950 ramp

primary
#127A1F
secondary
#B038A1
accent
#37DAF1
background
#F6FAF5
surface
#EBF3EA
border
#C6CDC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #127A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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