#127D18#127D18

#127D18 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.4% C 0.162 H 143.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#127D18
RGBrgb(18, 125, 24)
HSLhsl(123, 75%, 28%)
HSVhsv(123, 86%, 49%)
CMYKcmyk(85.6%, 0%, 80.8%, 51%)
CIE-LABlab(45.44, -48.05, 43.43)
CIE-LCHlch(45.44, 64.77, 137.89°)
OKLaboklab(51.4% -0.1302 0.0972)
OKLCHoklch(51.4% 0.162 143.3)
XYZxyz(7.7474, 14.8608, 3.3241)
Luminance0.1486 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127D18 #7D1277
analogous
#427D12 #127D18 #127D4D
triadic
#127D18 #18127D #7D1812
tetradic
#127D18 #12427D #7D1277 #7D4D12
square
#127D18 #12427D #7D1277 #7D4D12
split-complementary
#127D18 #4D127D #7D1242
monochromatic
#041B05 #0A480E #127D18 #1AB222 #29E033

Accessibility & contrast

On white

5.29
#127D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#127D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127D18
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127D18#FFFFFF#000000##FFFFFF
##127D181.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#756924
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #127d18;
/* rgb */ color: rgb(18, 125, 24);
/* oklch */ color: oklch(51.4% 0.162 143.3);
Tailwind
colors: {
  custom: {
    50: '#68a45e',
    500: '#127d18',
    950: '#000000',
  },
}
SCSS
$custom: #127d18;
$custom-light: #68a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#127d18",
  "rgb": {
    "r": 18,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 123.364,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.514,
    "c": 0.16244,
    "h": 143.3
  },
  "luminance": 0.14862
}

Semantic roles & 50–950 ramp

primary
#127D18
secondary
#B338AC
accent
#36E7F1
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #127D18

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

Preview Lab → · Contrast checker → · Palette generator →

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