#127F2A#127F2A

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

Color values

HEX#127F2A
RGBrgb(18, 127, 42)
HSLhsl(133, 75%, 28%)
HSVhsv(133, 86%, 50%)
CMYKcmyk(85.8%, 0%, 66.9%, 50.2%)
CIE-LABlab(46.28, -46.99, 37.01)
CIE-LCHlch(46.28, 59.82, 141.78°)
OKLaboklab(52.14% -0.1265 0.0861)
OKLCHoklch(52.14% 0.153 145.8)
XYZxyz(8.2561, 15.4735, 4.7416)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127F2A #7F1267
analogous
#307F12 #127F2A #127F60
triadic
#127F2A #2A127F #7F2A12
tetradic
#127F2A #12307F #7F1267 #7F6012
square
#127F2A #12307F #7F1267 #7F6012
split-complementary
#127F2A #60127F #7F1230
monochromatic
#041B09 #0A4918 #127F2A #1AB53C #2BE153

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##127F2A#FFFFFF#000000##FFFFFF
##127F2A1.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)
#817320
Deuteranopia (green-blind)
#766A32
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #127f2a;
/* rgb */ color: rgb(18, 127, 42);
/* oklch */ color: oklch(52.1% 0.153 145.8);
Tailwind
colors: {
  custom: {
    50: '#67a567',
    500: '#127f2a',
    950: '#000000',
  },
}
SCSS
$custom: #127f2a;
$custom-light: #67a567;
$custom-dark: #000000;
JSON
{
  "hex": "#127f2a",
  "rgb": {
    "r": 18,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 133.211,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52138,
    "c": 0.15301,
    "h": 145.8
  },
  "luminance": 0.15475
}

Semantic roles & 50–950 ramp

primary
#127F2A
secondary
#B53899
accent
#36C8F2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #127F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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