#228A40#228A40

#228A40 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.8% C 0.144 H 148.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#228A40
RGBrgb(34, 138, 64)
HSLhsl(137, 60%, 34%)
HSVhsv(137, 75%, 54%)
CMYKcmyk(75.4%, 0%, 53.6%, 45.9%)
CIE-LABlab(50.55, -45.65, 31.22)
CIE-LCHlch(50.55, 55.30, 145.63°)
OKLaboklab(55.84% -0.1228 0.0753)
OKLCHoklch(55.84% 0.144 148.5)
XYZxyz(10.6727, 18.8860, 7.9324)
Luminance0.1889 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228A40 #8A226C
analogous
#388A22 #228A40 #228A74
triadic
#228A40 #40228A #8A4022
tetradic
#228A40 #22388A #8A226C #8A7422
square
#228A40 #22388A #8A226C #8A7422
split-complementary
#228A40 #74228A #8A2238
monochromatic
#0A2812 #165929 #228A40 #2EBB57 #52D478

Accessibility & contrast

On white

4.40
#228A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#228A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228A40
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228A40#FFFFFF#000000##000000
##228A401.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7D3A
Deuteranopia (green-blind)
#7F7546
Tritanopia (blue-blind)
#008779
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #228a40;
/* rgb */ color: rgb(34, 138, 64);
/* oklch */ color: oklch(55.8% 0.144 148.5);
Tailwind
colors: {
  custom: {
    50: '#6ead76',
    500: '#228a40',
    950: '#000000',
  },
}
SCSS
$custom: #228a40;
$custom-light: #6ead76;
$custom-dark: #000000;
JSON
{
  "hex": "#228a40",
  "rgb": {
    "r": 34,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 137.308,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.55844,
    "c": 0.14403,
    "h": 148.5
  },
  "luminance": 0.18887
}

Semantic roles & 50–950 ramp

primary
#228A40
secondary
#B8509A
accent
#44B6E4
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #228A40

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

Preview Lab → · Contrast checker → · Palette generator →

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