#228B28#228B28

#228B28 is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.8% C 0.165 H 143.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#228B28
RGBrgb(34, 139, 40)
HSLhsl(123, 61%, 34%)
HSVhsv(123, 76%, 55%)
CMYKcmyk(75.5%, 0%, 71.2%, 45.5%)
CIE-LABlab(50.64, -49.05, 42.68)
CIE-LCHlch(50.64, 65.02, 138.97°)
OKLaboklab(55.83% -0.1328 0.0977)
OKLCHoklch(55.83% 0.165 143.7)
XYZxyz(10.2746, 18.9573, 5.1247)
Luminance0.1896 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228B28 #8B2285
analogous
#518B22 #228B28 #228B5D
triadic
#228B28 #28228B #8B2822
tetradic
#228B28 #22518B #8B2285 #8B5D22
square
#228B28 #22518B #8B2285 #8B5D22
split-complementary
#228B28 #5D228B #8B2251
monochromatic
#0A290C #165A1A #228B28 #2EBC36 #53D55A

Accessibility & contrast

On white

4.38
#228B28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#228B28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228B28
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228B28#FFFFFF#000000##000000
##228B281.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E19
Deuteranopia (green-blind)
#827532
Tritanopia (blue-blind)
#008777
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228b28;
/* rgb */ color: rgb(34, 139, 40);
/* oklch */ color: oklch(55.8% 0.165 143.7);
Tailwind
colors: {
  custom: {
    50: '#6fae68',
    500: '#228b28',
    950: '#000000',
  },
}
SCSS
$custom: #228b28;
$custom-light: #6fae68;
$custom-dark: #000000;
JSON
{
  "hex": "#228b28",
  "rgb": {
    "r": 34,
    "g": 139,
    "b": 40
  },
  "hsl": {
    "h": 123.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.55831,
    "c": 0.16493,
    "h": 143.7
  },
  "luminance": 0.18959
}

Semantic roles & 50–950 ramp

primary
#228B28
secondary
#B850B3
accent
#44DBE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #228B28

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

Preview Lab → · Contrast checker → · Palette generator →

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