#127E1B#127E1B

#127E1B is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.7% C 0.162 H 143.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#127E1B
RGBrgb(18, 126, 27)
HSLhsl(125, 75%, 28%)
HSVhsv(125, 86%, 49%)
CMYKcmyk(85.7%, 0%, 78.6%, 50.6%)
CIE-LABlab(45.81, -48.15, 42.74)
CIE-LCHlch(45.81, 64.38, 138.41°)
OKLaboklab(51.71% -0.1303 0.0962)
OKLCHoklch(51.71% 0.162 143.6)
XYZxyz(7.9076, 15.1285, 3.5400)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127E1B #7E1275
analogous
#3F7E12 #127E1B #127E51
triadic
#127E1B #1B127E #7E1B12
tetradic
#127E1B #123F7E #7E1275 #7E5112
square
#127E1B #123F7E #7E1275 #7E5112
split-complementary
#127E1B #51127E #7E123F
monochromatic
#041B06 #0A4810 #127E1B #1AB426 #2AE139

Accessibility & contrast

On white

5.22
#127E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#127E1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127E1B
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127E1B#FFFFFF#000000##FFFFFF
##127E1B1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817105
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #127e1b;
/* rgb */ color: rgb(18, 126, 27);
/* oklch */ color: oklch(51.7% 0.162 143.6);
Tailwind
colors: {
  custom: {
    50: '#68a45f',
    500: '#127e1b',
    950: '#000000',
  },
}
SCSS
$custom: #127e1b;
$custom-light: #68a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#127e1b",
  "rgb": {
    "r": 18,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 125,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51712,
    "c": 0.16194,
    "h": 143.6
  },
  "luminance": 0.15129
}

Semantic roles & 50–950 ramp

primary
#127E1B
secondary
#B438A9
accent
#36E2F2
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #127E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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