#228E40#228E40

#228E40 is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.149 H 148.1°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#228E40
RGBrgb(34, 142, 64)
HSLhsl(137, 61%, 35%)
HSVhsv(137, 76%, 56%)
CMYKcmyk(76.1%, 0%, 54.9%, 44.3%)
CIE-LABlab(51.90, -47.12, 32.86)
CIE-LCHlch(51.90, 57.45, 145.11°)
OKLaboklab(56.96% -0.1268 0.0789)
OKLCHoklch(56.96% 0.149 148.1)
XYZxyz(11.2572, 20.0549, 8.1272)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E40 #8E2270
analogous
#3A8E22 #228E40 #228E76
triadic
#228E40 #40228E #8E4022
tetradic
#228E40 #223A8E #8E2270 #8E7622
square
#228E40 #223A8E #8E2270 #8E7622
split-complementary
#228E40 #76228E #8E223A
monochromatic
#0A2B13 #165D2A #228E40 #2EBF56 #54D678

Accessibility & contrast

On white

4.19
#228E40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#228E40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228E40
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228E40#FFFFFF#000000##000000
##228E401.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8139
Deuteranopia (green-blind)
#837846
Tritanopia (blue-blind)
#008B7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228e40;
/* rgb */ color: rgb(34, 142, 64);
/* oklch */ color: oklch(57.0% 0.149 148.1);
Tailwind
colors: {
  custom: {
    50: '#6fb077',
    500: '#228e40',
    950: '#000000',
  },
}
SCSS
$custom: #228e40;
$custom-light: #6fb077;
$custom-dark: #000000;
JSON
{
  "hex": "#228e40",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 64
  },
  "hsl": {
    "h": 136.667,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56958,
    "c": 0.14931,
    "h": 148.1
  },
  "luminance": 0.20056
}

Semantic roles & 50–950 ramp

primary
#228E40
secondary
#BA529D
accent
#43B8E4
background
#F7FAF7
surface
#EDF5ED
border
#C8CFC8
text
#081109
muted
#7B807B

Preview Lab

Preview with #228E40

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

Preview Lab → · Contrast checker → · Palette generator →

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