#127F2B#127F2B

#127F2B is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.1% C 0.152 H 146.0°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#127F2B
RGBrgb(18, 127, 43)
HSLhsl(134, 75%, 28%)
HSVhsv(134, 86%, 50%)
CMYKcmyk(85.8%, 0%, 66.1%, 50.2%)
CIE-LABlab(46.29, -46.87, 36.56)
CIE-LCHlch(46.29, 59.44, 142.05°)
OKLaboklab(52.15% -0.1262 0.0852)
OKLCHoklch(52.15% 0.152 146)
XYZxyz(8.2742, 15.4807, 4.8370)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127F2B #7F1266
analogous
#307F12 #127F2B #127F61
triadic
#127F2B #2B127F #7F2B12
tetradic
#127F2B #12307F #7F1266 #7F6112
square
#127F2B #12307F #7F1266 #7F6112
split-complementary
#127F2B #61127F #7F1230
monochromatic
#041B09 #0A4919 #127F2B #1AB53D #2BE154

Accessibility & contrast

On white

5.13
#127F2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#127F2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127F2B
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127F2B#FFFFFF#000000##FFFFFF
##127F2B1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817321
Deuteranopia (green-blind)
#756A32
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #127f2b;
/* rgb */ color: rgb(18, 127, 43);
/* oklch */ color: oklch(52.1% 0.152 146.0);
Tailwind
colors: {
  custom: {
    50: '#67a568',
    500: '#127f2b',
    950: '#000000',
  },
}
SCSS
$custom: #127f2b;
$custom-light: #67a568;
$custom-dark: #000000;
JSON
{
  "hex": "#127f2b",
  "rgb": {
    "r": 18,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 133.761,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52149,
    "c": 0.15223,
    "h": 146
  },
  "luminance": 0.15482
}

Semantic roles & 50–950 ramp

primary
#127F2B
secondary
#B53898
accent
#36C7F2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #127F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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