#228B42#228B42

#228B42 is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.2% C 0.143 H 148.9°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#228B42
RGBrgb(34, 139, 66)
HSLhsl(138, 61%, 34%)
HSVhsv(138, 76%, 55%)
CMYKcmyk(75.5%, 0%, 52.5%, 45.5%)
CIE-LABlab(50.92, -45.70, 30.62)
CIE-LCHlch(50.92, 55.01, 146.18°)
OKLaboklab(56.15% -0.1229 0.0741)
OKLCHoklch(56.15% 0.144 148.9)
XYZxyz(10.8748, 19.1974, 8.2855)
Luminance0.1920 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228B42 #8B226B
analogous
#378B22 #228B42 #228B77
triadic
#228B42 #42228B #8B4222
tetradic
#228B42 #22378B #8B226B #8B7722
square
#228B42 #22378B #8B226B #8B7722
split-complementary
#228B42 #77228B #8B2237
monochromatic
#0A2913 #165A2B #228B42 #2EBC59 #53D57A

Accessibility & contrast

On white

4.34
#228B42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#228B42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228B42
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228B42#FFFFFF#000000##000000
##228B421.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7E3C
Deuteranopia (green-blind)
#807647
Tritanopia (blue-blind)
#00887A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228b42;
/* rgb */ color: rgb(34, 139, 66);
/* oklch */ color: oklch(56.2% 0.143 148.9);
Tailwind
colors: {
  custom: {
    50: '#6eae78',
    500: '#228b42',
    950: '#000000',
  },
}
SCSS
$custom: #228b42;
$custom-light: #6eae78;
$custom-dark: #000000;
JSON
{
  "hex": "#228b42",
  "rgb": {
    "r": 34,
    "g": 139,
    "b": 66
  },
  "hsl": {
    "h": 138.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56154,
    "c": 0.1435,
    "h": 148.9
  },
  "luminance": 0.19199
}

Semantic roles & 50–950 ramp

primary
#228B42
secondary
#B85099
accent
#44B3E4
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #228B42

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

Preview Lab → · Contrast checker → · Palette generator →

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