#127F42#127F42

#127F42 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.132 H 152.1°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#127F42
RGBrgb(18, 127, 66)
HSLhsl(146, 75%, 28%)
HSVhsv(146, 86%, 50%)
CMYKcmyk(85.8%, 0%, 48%, 50.2%)
CIE-LABlab(46.58, -43.35, 25.12)
CIE-LCHlch(46.58, 50.10, 149.91°)
OKLaboklab(52.49% -0.1163 0.0616)
OKLCHoklch(52.49% 0.132 152.1)
XYZxyz(8.8214, 15.6996, 7.7186)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127F42 #7F124F
analogous
#187F12 #127F42 #127F78
triadic
#127F42 #42127F #7F4212
tetradic
#127F42 #12187F #7F124F #7F7812
square
#127F42 #12187F #7F124F #7F7812
split-complementary
#127F42 #78127F #7F1218
monochromatic
#041B0E #0A4926 #127F42 #1AB55E #2BE17B

Accessibility & contrast

On white

5.07
#127F42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#127F42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127F42
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127F42#FFFFFF#000000##FFFFFF
##127F421.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F733D
Deuteranopia (green-blind)
#736B46
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #127f42;
/* rgb */ color: rgb(18, 127, 66);
/* oklch */ color: oklch(52.5% 0.132 152.1);
Tailwind
colors: {
  custom: {
    50: '#66a577',
    500: '#127f42',
    950: '#000000',
  },
}
SCSS
$custom: #127f42;
$custom-light: #66a577;
$custom-dark: #000000;
JSON
{
  "hex": "#127f42",
  "rgb": {
    "r": 18,
    "g": 127,
    "b": 66
  },
  "hsl": {
    "h": 146.422,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52486,
    "c": 0.13165,
    "h": 152.1
  },
  "luminance": 0.15701
}

Semantic roles & 50–950 ramp

primary
#127F42
secondary
#B5387E
accent
#369FF2
background
#F6FAF7
surface
#EBF4ED
border
#C6CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #127F42

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

Preview Lab → · Contrast checker → · Palette generator →

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