#228E2C#228E2C

#228E2C is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.7% C 0.166 H 144.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#228E2C
RGBrgb(34, 142, 44)
HSLhsl(126, 61%, 35%)
HSVhsv(126, 76%, 56%)
CMYKcmyk(76.1%, 0%, 69%, 44.3%)
CIE-LABlab(51.69, -49.67, 42.11)
CIE-LCHlch(51.69, 65.12, 139.71°)
OKLaboklab(56.71% -0.1344 0.097)
OKLCHoklch(56.71% 0.166 144.2)
XYZxyz(10.7866, 19.8667, 5.6486)
Luminance0.1987 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E2C #8E2284
analogous
#4E8E22 #228E2C #228E62
triadic
#228E2C #2C228E #8E2C22
tetradic
#228E2C #224E8E #8E2284 #8E6222
square
#228E2C #224E8E #8E2284 #8E6222
split-complementary
#228E2C #62228E #8E224E
monochromatic
#0A2B0D #165D1D #228E2C #2EBF3B #54D660

Accessibility & contrast

On white

4.22
#228E2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#228E2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228E2C
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228E2C#FFFFFF#000000##000000
##228E2C1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#91801F
Deuteranopia (green-blind)
#857835
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e2c;
/* rgb */ color: rgb(34, 142, 44);
/* oklch */ color: oklch(56.7% 0.166 144.2);
Tailwind
colors: {
  custom: {
    50: '#70b06a',
    500: '#228e2c',
    950: '#000000',
  },
}
SCSS
$custom: #228e2c;
$custom-light: #70b06a;
$custom-dark: #000000;
JSON
{
  "hex": "#228e2c",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 44
  },
  "hsl": {
    "h": 125.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56713,
    "c": 0.16573,
    "h": 144.2
  },
  "luminance": 0.19868
}

Semantic roles & 50–950 ramp

primary
#228E2C
secondary
#BA52B0
accent
#43D6E4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #228E2C

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

Preview Lab → · Contrast checker → · Palette generator →

#228E2C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva