#127D21#127D21

#127D21 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.5% C 0.157 H 144.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#127D21
RGBrgb(18, 125, 33)
HSLhsl(128, 75%, 28%)
HSVhsv(128, 86%, 49%)
CMYKcmyk(85.6%, 0%, 73.6%, 51%)
CIE-LABlab(45.50, -47.29, 40.11)
CIE-LCHlch(45.50, 62.01, 139.70°)
OKLaboklab(51.47% -0.1277 0.0915)
OKLCHoklch(51.47% 0.157 144.4)
XYZxyz(7.8570, 14.9047, 3.9013)
Luminance0.1491 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127D21 #7D126E
analogous
#387D12 #127D21 #127D56
triadic
#127D21 #21127D #7D2112
tetradic
#127D21 #12387D #7D126E #7D5612
square
#127D21 #12387D #7D126E #7D5612
split-complementary
#127D21 #56127D #7D1238
monochromatic
#041B07 #0A4813 #127D21 #1AB22F #29E043

Accessibility & contrast

On white

5.27
#127D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #127D21
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127D21#FFFFFF#000000##FFFFFF
##127D211.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7012
Deuteranopia (green-blind)
#74692A
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #127d21;
/* rgb */ color: rgb(18, 125, 33);
/* oklch */ color: oklch(51.5% 0.157 144.4);
Tailwind
colors: {
  custom: {
    50: '#67a462',
    500: '#127d21',
    950: '#000000',
  },
}
SCSS
$custom: #127d21;
$custom-light: #67a462;
$custom-dark: #000000;
JSON
{
  "hex": "#127d21",
  "rgb": {
    "r": 18,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 128.411,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5147,
    "c": 0.15709,
    "h": 144.4
  },
  "luminance": 0.14906
}

Semantic roles & 50–950 ramp

primary
#127D21
secondary
#B338A2
accent
#36D7F1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #127D21

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

Preview Lab → · Contrast checker → · Palette generator →

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