#127F1F#127F1F

#127F1F is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.0% C 0.161 H 144.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#127F1F
RGBrgb(18, 127, 31)
HSLhsl(127, 75%, 28%)
HSVhsv(127, 86%, 50%)
CMYKcmyk(85.8%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.18, -48.13, 41.61)
CIE-LCHlch(46.18, 63.63, 139.16°)
OKLaboklab(52.03% -0.1301 0.0944)
OKLCHoklch(52.03% 0.161 144)
XYZxyz(8.0856, 15.4053, 3.8434)
Luminance0.1541 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127F1F #7F1272
analogous
#3B7F12 #127F1F #127F55
triadic
#127F1F #1F127F #7F1F12
tetradic
#127F1F #123B7F #7F1272 #7F5512
square
#127F1F #123B7F #7F1272 #7F5512
split-complementary
#127F1F #55127F #7F123B
monochromatic
#041B07 #0A4912 #127F1F #1AB52C #2BE140

Accessibility & contrast

On white

5.15
#127F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#127F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127F1F
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127F1F#FFFFFF#000000##FFFFFF
##127F1F1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82720D
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #127f1f;
/* rgb */ color: rgb(18, 127, 31);
/* oklch */ color: oklch(52.0% 0.161 144.0);
Tailwind
colors: {
  custom: {
    50: '#68a561',
    500: '#127f1f',
    950: '#000000',
  },
}
SCSS
$custom: #127f1f;
$custom-light: #68a561;
$custom-dark: #000000;
JSON
{
  "hex": "#127f1f",
  "rgb": {
    "r": 18,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 127.156,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52032,
    "c": 0.16071,
    "h": 144
  },
  "luminance": 0.15406
}

Semantic roles & 50–950 ramp

primary
#127F1F
secondary
#B538A6
accent
#36DBF2
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #127F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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