#228A52#228A52

#228A52 is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.2% C 0.127 H 154.5°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#228A52
RGBrgb(34, 138, 82)
HSLhsl(148, 60%, 34%)
HSVhsv(148, 75%, 54%)
CMYKcmyk(75.4%, 0%, 40.6%, 45.9%)
CIE-LABlab(50.83, -42.43, 21.86)
CIE-LCHlch(50.83, 47.73, 152.74°)
OKLaboklab(56.17% -0.1144 0.0545)
OKLCHoklch(56.17% 0.127 154.5)
XYZxyz(11.2701, 19.1249, 11.0785)
Luminance0.1913 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228A52 #8A225A
analogous
#268A22 #228A52 #228A86
triadic
#228A52 #52228A #8A5222
tetradic
#228A52 #22268A #8A225A #8A8622
square
#228A52 #22268A #8A225A #8A8622
split-complementary
#228A52 #86228A #8A2226
monochromatic
#0A2818 #165935 #228A52 #2EBB6F #52D48E

Accessibility & contrast

On white

4.35
#228A52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#228A52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228A52
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228A52#FFFFFF#000000##000000
##228A521.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7E4E
Deuteranopia (green-blind)
#7D7556
Tritanopia (blue-blind)
#00887C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228a52;
/* rgb */ color: rgb(34, 138, 82);
/* oklch */ color: oklch(56.2% 0.127 154.5);
Tailwind
colors: {
  custom: {
    50: '#6dad83',
    500: '#228a52',
    950: '#000000',
  },
}
SCSS
$custom: #228a52;
$custom-light: #6dad83;
$custom-dark: #000000;
JSON
{
  "hex": "#228a52",
  "rgb": {
    "r": 34,
    "g": 138,
    "b": 82
  },
  "hsl": {
    "h": 147.692,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56166,
    "c": 0.12675,
    "h": 154.5
  },
  "luminance": 0.19126
}

Semantic roles & 50–950 ramp

primary
#228A52
secondary
#B85088
accent
#449AE4
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #228A52

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

Preview Lab → · Contrast checker → · Palette generator →

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