#127F2C#127F2C

#127F2C is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.151 H 146.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#127F2C
RGBrgb(18, 127, 44)
HSLhsl(134, 75%, 28%)
HSVhsv(134, 86%, 50%)
CMYKcmyk(85.8%, 0%, 65.4%, 50.2%)
CIE-LABlab(46.30, -46.75, 36.10)
CIE-LCHlch(46.30, 59.07, 142.33°)
OKLaboklab(52.16% -0.1258 0.0843)
OKLCHoklch(52.16% 0.151 146.2)
XYZxyz(8.2928, 15.4882, 4.9348)
Luminance0.1549 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127F2C #7F1265
analogous
#2E7F12 #127F2C #127F62
triadic
#127F2C #2C127F #7F2C12
tetradic
#127F2C #122E7F #7F1265 #7F6212
square
#127F2C #122E7F #7F1265 #7F6212
split-complementary
#127F2C #62127F #7F122E
monochromatic
#041B09 #0A4919 #127F2C #1AB53F #2BE156

Accessibility & contrast

On white

5.12
#127F2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #127F2C
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127F2C#FFFFFF#000000##FFFFFF
##127F2C1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #127f2c;
/* rgb */ color: rgb(18, 127, 44);
/* oklch */ color: oklch(52.2% 0.151 146.2);
Tailwind
colors: {
  custom: {
    50: '#67a569',
    500: '#127f2c',
    950: '#000000',
  },
}
SCSS
$custom: #127f2c;
$custom-light: #67a569;
$custom-dark: #000000;
JSON
{
  "hex": "#127f2c",
  "rgb": {
    "r": 18,
    "g": 127,
    "b": 44
  },
  "hsl": {
    "h": 134.312,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5216,
    "c": 0.15144,
    "h": 146.2
  },
  "luminance": 0.15489
}

Semantic roles & 50–950 ramp

primary
#127F2C
secondary
#B53897
accent
#36C5F2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #127F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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