#228F40#228F40

#228F40 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.2% C 0.151 H 148.0°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#228F40
RGBrgb(34, 143, 64)
HSLhsl(137, 62%, 35%)
HSVhsv(137, 76%, 56%)
CMYKcmyk(76.2%, 0%, 55.2%, 43.9%)
CIE-LABlab(52.23, -47.49, 33.27)
CIE-LCHlch(52.23, 57.98, 144.99°)
OKLaboklab(57.24% -0.1277 0.0798)
OKLCHoklch(57.24% 0.151 148)
XYZxyz(11.4067, 20.3538, 8.1770)
Luminance0.2036 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F40 #8F2271
analogous
#3A8F22 #228F40 #228F77
triadic
#228F40 #40228F #8F4022
tetradic
#228F40 #223A8F #8F2271 #8F7722
square
#228F40 #223A8F #8F2271 #8F7722
split-complementary
#228F40 #77228F #8F223A
monochromatic
#0A2C14 #165E2A #228F40 #2EC056 #55D779

Accessibility & contrast

On white

4.14
#228F40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#228F40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F40
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F40#FFFFFF#000000##000000
##228F401.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918239
Deuteranopia (green-blind)
#847946
Tritanopia (blue-blind)
#008C7D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #228f40;
/* rgb */ color: rgb(34, 143, 64);
/* oklch */ color: oklch(57.2% 0.151 148.0);
Tailwind
colors: {
  custom: {
    50: '#6fb177',
    500: '#228f40',
    950: '#000000',
  },
}
SCSS
$custom: #228f40;
$custom-light: #6fb177;
$custom-dark: #000000;
JSON
{
  "hex": "#228f40",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 64
  },
  "hsl": {
    "h": 136.514,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57236,
    "c": 0.15062,
    "h": 148
  },
  "luminance": 0.20355
}

Semantic roles & 50–950 ramp

primary
#228F40
secondary
#BA529E
accent
#43B8E5
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#081109
muted
#7B807B

Preview Lab

Preview with #228F40

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

Preview Lab → · Contrast checker → · Palette generator →

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