#127F20#127F20

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

Color values

HEX#127F20
RGBrgb(18, 127, 32)
HSLhsl(128, 75%, 28%)
HSVhsv(128, 86%, 50%)
CMYKcmyk(85.8%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.19, -48.04, 41.22)
CIE-LCHlch(46.19, 63.30, 139.37°)
OKLaboklab(52.04% -0.1298 0.0937)
OKLCHoklch(52.04% 0.16 144.2)
XYZxyz(8.0990, 15.4106, 3.9139)
Luminance0.1541 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127F20 #7F1271
analogous
#3B7F12 #127F20 #127F56
triadic
#127F20 #20127F #7F2012
tetradic
#127F20 #123B7F #7F1271 #7F5612
square
#127F20 #123B7F #7F1271 #7F5612
split-complementary
#127F20 #56127F #7F123B
monochromatic
#041B07 #0A4912 #127F20 #1AB52E #2BE142

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##127F20#FFFFFF#000000##FFFFFF
##127F201.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)
#81720F
Deuteranopia (green-blind)
#766A2A
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #127f20;
/* rgb */ color: rgb(18, 127, 32);
/* oklch */ color: oklch(52.0% 0.160 144.2);
Tailwind
colors: {
  custom: {
    50: '#68a562',
    500: '#127f20',
    950: '#000000',
  },
}
SCSS
$custom: #127f20;
$custom-light: #68a562;
$custom-dark: #000000;
JSON
{
  "hex": "#127f20",
  "rgb": {
    "r": 18,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 127.706,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5204,
    "c": 0.16008,
    "h": 144.2
  },
  "luminance": 0.15412
}

Semantic roles & 50–950 ramp

primary
#127F20
secondary
#B538A5
accent
#36DAF2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #127F20

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

Preview Lab → · Contrast checker → · Palette generator →

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