#227828#227828

#227828 is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.141 H 144.1°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#227828
RGBrgb(34, 120, 40)
HSLhsl(124, 56%, 30%)
HSVhsv(124, 72%, 47%)
CMYKcmyk(71.7%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.13, -42.27, 35.63)
CIE-LCHlch(44.13, 55.28, 139.87°)
OKLaboklab(50.43% -0.1144 0.0829)
OKLCHoklch(50.43% 0.141 144.1)
XYZxyz(7.7587, 13.9254, 4.2861)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227828 #782272
analogous
#477822 #227828 #227853
triadic
#227828 #282278 #782822
tetradic
#227828 #224778 #782272 #785322
square
#227828 #224778 #782272 #785322
split-complementary
#227828 #532278 #782247
monochromatic
#071908 #144818 #227828 #30A838 #49CB52

Accessibility & contrast

On white

5.55
#227828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#227828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227828
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227828#FFFFFF#000000##FFFFFF
##2278281.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D1E
Deuteranopia (green-blind)
#70662F
Tritanopia (blue-blind)
#067567
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #227828;
/* rgb */ color: rgb(34, 120, 40);
/* oklch */ color: oklch(50.4% 0.141 144.1);
Tailwind
colors: {
  custom: {
    50: '#6aa066',
    500: '#227828',
    950: '#000000',
  },
}
SCSS
$custom: #227828;
$custom-light: #6aa066;
$custom-dark: #000000;
JSON
{
  "hex": "#227828",
  "rgb": {
    "r": 34,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 124.186,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50432,
    "c": 0.1413,
    "h": 144.1
  },
  "luminance": 0.13926
}

Semantic roles & 50–950 ramp

primary
#227828
secondary
#AB4BA4
accent
#49D5DF
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #227828

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

Preview Lab → · Contrast checker → · Palette generator →

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