#228E28#228E28

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

Color values

HEX#228E28
RGBrgb(34, 142, 40)
HSLhsl(123, 61%, 35%)
HSVhsv(123, 76%, 56%)
CMYKcmyk(76.1%, 0%, 71.8%, 44.3%)
CIE-LABlab(51.65, -50.07, 43.75)
CIE-LCHlch(51.65, 66.49, 138.85°)
OKLaboklab(56.68% -0.1356 0.1)
OKLCHoklch(56.68% 0.169 143.6)
XYZxyz(10.7150, 19.8381, 5.2715)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E28 #8E2288
analogous
#528E22 #228E28 #228E5E
triadic
#228E28 #28228E #8E2822
tetradic
#228E28 #22528E #8E2288 #8E5E22
square
#228E28 #22528E #8E2288 #8E5E22
split-complementary
#228E28 #5E228E #8E2252
monochromatic
#0A2B0C #165D1A #228E28 #2EBF36 #54D65B

Accessibility & contrast

On white

4.23
#228E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##228E28#FFFFFF#000000##000000
##228E281.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918018
Deuteranopia (green-blind)
#857832
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e28;
/* rgb */ color: rgb(34, 142, 40);
/* oklch */ color: oklch(56.7% 0.169 143.6);
Tailwind
colors: {
  custom: {
    50: '#70b068',
    500: '#228e28',
    950: '#000000',
  },
}
SCSS
$custom: #228e28;
$custom-light: #70b068;
$custom-dark: #000000;
JSON
{
  "hex": "#228e28",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 123.333,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56675,
    "c": 0.1685,
    "h": 143.6
  },
  "luminance": 0.19839
}

Semantic roles & 50–950 ramp

primary
#228E28
secondary
#BA52B4
accent
#43DCE4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228E28

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

Preview Lab → · Contrast checker → · Palette generator →

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