#228B51#228B51

#228B51 is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.4% C 0.129 H 153.9°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#228B51
RGBrgb(34, 139, 81)
HSLhsl(147, 61%, 34%)
HSVhsv(147, 76%, 55%)
CMYKcmyk(75.5%, 0%, 41.7%, 45.5%)
CIE-LABlab(51.15, -43.03, 22.83)
CIE-LCHlch(51.15, 48.71, 152.05°)
OKLaboklab(56.42% -0.116 0.0568)
OKLCHoklch(56.42% 0.129 153.9)
XYZxyz(11.3765, 19.3981, 10.9276)
Luminance0.1940 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228B51 #8B225C
analogous
#288B22 #228B51 #228B86
triadic
#228B51 #51228B #8B5122
tetradic
#228B51 #22288B #8B225C #8B8622
square
#228B51 #22288B #8B225C #8B8622
split-complementary
#228B51 #86228B #8B2228
monochromatic
#0A2918 #165A34 #228B51 #2EBC6E #53D58D

Accessibility & contrast

On white

4.30
#228B51 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#228B51 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228B51
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228B51#FFFFFF#000000##000000
##228B511.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7F4D
Deuteranopia (green-blind)
#7E7655
Tritanopia (blue-blind)
#00897D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228b51;
/* rgb */ color: rgb(34, 139, 81);
/* oklch */ color: oklch(56.4% 0.129 153.9);
Tailwind
colors: {
  custom: {
    50: '#6eae82',
    500: '#228b51',
    950: '#000000',
  },
}
SCSS
$custom: #228b51;
$custom-light: #6eae82;
$custom-dark: #000000;
JSON
{
  "hex": "#228b51",
  "rgb": {
    "r": 34,
    "g": 139,
    "b": 81
  },
  "hsl": {
    "h": 146.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56422,
    "c": 0.12911,
    "h": 153.9
  },
  "luminance": 0.19399
}

Semantic roles & 50–950 ramp

primary
#228B51
secondary
#B8508A
accent
#449CE4
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #228B51

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

Preview Lab → · Contrast checker → · Palette generator →

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