#127D1C#127D1C

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

Color values

HEX#127D1C
RGBrgb(18, 125, 28)
HSLhsl(126, 75%, 28%)
HSVhsv(126, 86%, 49%)
CMYKcmyk(85.6%, 0%, 77.6%, 51%)
CIE-LABlab(45.47, -47.74, 42.03)
CIE-LCHlch(45.47, 63.60, 138.64°)
OKLaboklab(51.43% -0.1291 0.0948)
OKLCHoklch(51.43% 0.16 143.7)
XYZxyz(7.7921, 14.8787, 3.5596)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127D1C #7D1273
analogous
#3E7D12 #127D1C #127D51
triadic
#127D1C #1C127D #7D1C12
tetradic
#127D1C #123E7D #7D1273 #7D5112
square
#127D1C #123E7D #7D1273 #7D5112
split-complementary
#127D1C #51127D #7D123E
monochromatic
#041B06 #0A4810 #127D1C #1AB228 #29E03A

Accessibility & contrast

On white

5.28
#127D1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#127D1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127D1C
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127D1C#FFFFFF#000000##FFFFFF
##127D1C1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #127d1c;
/* rgb */ color: rgb(18, 125, 28);
/* oklch */ color: oklch(51.4% 0.160 143.7);
Tailwind
colors: {
  custom: {
    50: '#67a45f',
    500: '#127d1c',
    950: '#000000',
  },
}
SCSS
$custom: #127d1c;
$custom-light: #67a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#127d1c",
  "rgb": {
    "r": 18,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 125.607,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51429,
    "c": 0.16022,
    "h": 143.7
  },
  "luminance": 0.1488
}

Semantic roles & 50–950 ramp

primary
#127D1C
secondary
#B338A7
accent
#36E0F1
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #127D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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