#127228#127228

#127228 is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.3% C 0.138 H 146.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#127228
RGBrgb(18, 114, 40)
HSLhsl(134, 73%, 26%)
HSVhsv(134, 84%, 45%)
CMYKcmyk(84.2%, 0%, 64.9%, 55.3%)
CIE-LABlab(41.71, -42.74, 32.83)
CIE-LCHlch(41.71, 53.90, 142.47°)
OKLaboklab(48.34% -0.115 0.077)
OKLCHoklch(48.34% 0.138 146.2)
XYZxyz(6.6493, 12.3156, 4.0338)
Luminance0.1232 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127228 #72125C
analogous
#2C7212 #127228 #127258
triadic
#127228 #281272 #722812
tetradic
#127228 #122C72 #72125C #725812
square
#127228 #122C72 #72125C #725812
split-complementary
#127228 #581272 #72122C
monochromatic
#041A09 #0A3D15 #127228 #1AA73B #23DC4D

Accessibility & contrast

On white

6.06
#127228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#127228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127228
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127228#FFFFFF#000000##FFFFFF
##1272281.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746720
Deuteranopia (green-blind)
#69602E
Tritanopia (blue-blind)
#006F62
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #127228;
/* rgb */ color: rgb(18, 114, 40);
/* oklch */ color: oklch(48.3% 0.138 146.2);
Tailwind
colors: {
  custom: {
    50: '#649c65',
    500: '#127228',
    950: '#000000',
  },
}
SCSS
$custom: #127228;
$custom-light: #649c65;
$custom-dark: #000000;
JSON
{
  "hex": "#127228",
  "rgb": {
    "r": 18,
    "g": 114,
    "b": 40
  },
  "hsl": {
    "h": 133.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.4834,
    "c": 0.1384,
    "h": 146.2
  },
  "luminance": 0.12316
}

Semantic roles & 50–950 ramp

primary
#127228
secondary
#A9378F
accent
#38C5EF
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060E06
muted
#7A7E7A

Preview Lab

Preview with #127228

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

Preview Lab → · Contrast checker → · Palette generator →

#127228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva