#127F21#127F21

#127F21 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.0% C 0.159 H 144.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#127F21
RGBrgb(18, 127, 33)
HSLhsl(128, 75%, 28%)
HSVhsv(128, 86%, 50%)
CMYKcmyk(85.8%, 0%, 74%, 50.2%)
CIE-LABlab(46.20, -47.95, 40.83)
CIE-LCHlch(46.20, 62.98, 139.59°)
OKLaboklab(52.05% -0.1295 0.093)
OKLCHoklch(52.05% 0.159 144.3)
XYZxyz(8.1128, 15.4161, 3.9866)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127F21 #7F1270
analogous
#397F12 #127F21 #127F57
triadic
#127F21 #21127F #7F2112
tetradic
#127F21 #12397F #7F1270 #7F5712
square
#127F21 #12397F #7F1270 #7F5712
split-complementary
#127F21 #57127F #7F1239
monochromatic
#041B07 #0A4913 #127F21 #1AB52F #2BE144

Accessibility & contrast

On white

5.14
#127F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#127F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127F21
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127F21#FFFFFF#000000##FFFFFF
##127F211.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817211
Deuteranopia (green-blind)
#766A2B
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #127f21;
/* rgb */ color: rgb(18, 127, 33);
/* oklch */ color: oklch(52.0% 0.159 144.3);
Tailwind
colors: {
  custom: {
    50: '#68a562',
    500: '#127f21',
    950: '#000000',
  },
}
SCSS
$custom: #127f21;
$custom-light: #68a562;
$custom-dark: #000000;
JSON
{
  "hex": "#127f21",
  "rgb": {
    "r": 18,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 128.257,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52049,
    "c": 0.15944,
    "h": 144.3
  },
  "luminance": 0.15417
}

Semantic roles & 50–950 ramp

primary
#127F21
secondary
#B538A4
accent
#36D8F2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #127F21

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

Preview Lab → · Contrast checker → · Palette generator →

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