#127D1F#127D1F

#127D1F is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.5% C 0.158 H 144.1°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#127D1F
RGBrgb(18, 125, 31)
HSLhsl(127, 75%, 28%)
HSVhsv(127, 86%, 49%)
CMYKcmyk(85.6%, 0%, 75.2%, 51%)
CIE-LABlab(45.49, -47.48, 40.90)
CIE-LCHlch(45.49, 62.66, 139.26°)
OKLaboklab(51.45% -0.1283 0.0929)
OKLCHoklch(51.45% 0.158 144.1)
XYZxyz(7.8299, 14.8938, 3.7582)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127D1F #7D1270
analogous
#3A7D12 #127D1F #127D54
triadic
#127D1F #1F127D #7D1F12
tetradic
#127D1F #123A7D #7D1270 #7D5412
square
#127D1F #123A7D #7D1270 #7D5412
split-complementary
#127D1F #54127D #7D123A
monochromatic
#041B07 #0A4812 #127D1F #1AB22C #29E03F

Accessibility & contrast

On white

5.28
#127D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#127D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127D1F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127D1F#FFFFFF#000000##FFFFFF
##127D1F1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700E
Deuteranopia (green-blind)
#746929
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #127d1f;
/* rgb */ color: rgb(18, 125, 31);
/* oklch */ color: oklch(51.5% 0.158 144.1);
Tailwind
colors: {
  custom: {
    50: '#67a461',
    500: '#127d1f',
    950: '#000000',
  },
}
SCSS
$custom: #127d1f;
$custom-light: #67a461;
$custom-dark: #000000;
JSON
{
  "hex": "#127d1f",
  "rgb": {
    "r": 18,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 127.29,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51453,
    "c": 0.15839,
    "h": 144.1
  },
  "luminance": 0.14895
}

Semantic roles & 50–950 ramp

primary
#127D1F
secondary
#B338A4
accent
#36DBF1
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #127D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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