#127B1F#127B1F

#127B1F is a mid, vivid green. Relative luminance 0.144; OKLCH L 50.9% C 0.156 H 144.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#127B1F
RGBrgb(18, 123, 31)
HSLhsl(127, 74%, 28%)
HSVhsv(127, 85%, 48%)
CMYKcmyk(85.4%, 0%, 74.8%, 51.8%)
CIE-LABlab(44.79, -46.82, 40.18)
CIE-LCHlch(44.79, 61.70, 139.36°)
OKLaboklab(50.87% -0.1265 0.0914)
OKLCHoklch(50.87% 0.156 144.1)
XYZxyz(7.5792, 14.3925, 3.6746)
Luminance0.1439 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127B1F #7B126E
analogous
#397B12 #127B1F #127B54
triadic
#127B1F #1F127B #7B1F12
tetradic
#127B1F #12397B #7B126E #7B5412
square
#127B1F #12397B #7B126E #7B5412
split-complementary
#127B1F #54127B #7B1239
monochromatic
#041B07 #0A4612 #127B1F #1AB02C #28E03F

Accessibility & contrast

On white

5.41
#127B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#127B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127B1F
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127B1F#FFFFFF#000000##FFFFFF
##127B1F1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F0F
Deuteranopia (green-blind)
#726729
Tritanopia (blue-blind)
#007769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #127b1f;
/* rgb */ color: rgb(18, 123, 31);
/* oklch */ color: oklch(50.9% 0.156 144.1);
Tailwind
colors: {
  custom: {
    50: '#67a261',
    500: '#127b1f',
    950: '#000000',
  },
}
SCSS
$custom: #127b1f;
$custom-light: #67a261;
$custom-dark: #000000;
JSON
{
  "hex": "#127b1f",
  "rgb": {
    "r": 18,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 127.429,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.50872,
    "c": 0.15606,
    "h": 144.1
  },
  "luminance": 0.14393
}

Semantic roles & 50–950 ramp

primary
#127B1F
secondary
#B138A2
accent
#37DAF1
background
#F6FAF5
surface
#EBF4EA
border
#C6CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #127B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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