#228D28#228D28

#228D28 is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.4% C 0.167 H 143.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#228D28
RGBrgb(34, 141, 40)
HSLhsl(123, 61%, 34%)
HSVhsv(123, 76%, 55%)
CMYKcmyk(75.9%, 0%, 71.6%, 44.7%)
CIE-LABlab(51.32, -49.73, 43.40)
CIE-LCHlch(51.32, 66.00, 138.89°)
OKLaboklab(56.39% -0.1347 0.0992)
OKLCHoklch(56.39% 0.167 143.6)
XYZxyz(10.5669, 19.5418, 5.2221)
Luminance0.1954 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228D28 #8D2287
analogous
#528D22 #228D28 #228D5D
triadic
#228D28 #28228D #8D2822
tetradic
#228D28 #22528D #8D2287 #8D5D22
square
#228D28 #22528D #8D2287 #8D5D22
split-complementary
#228D28 #5D228D #8D2252
monochromatic
#0A2A0C #165C1A #228D28 #2EBE36 #54D65B

Accessibility & contrast

On white

4.28
#228D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#228D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228D28
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228D28#FFFFFF#000000##000000
##228D281.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F19
Deuteranopia (green-blind)
#847732
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228d28;
/* rgb */ color: rgb(34, 141, 40);
/* oklch */ color: oklch(56.4% 0.167 143.6);
Tailwind
colors: {
  custom: {
    50: '#70af68',
    500: '#228d28',
    950: '#000000',
  },
}
SCSS
$custom: #228d28;
$custom-light: #70af68;
$custom-dark: #000000;
JSON
{
  "hex": "#228d28",
  "rgb": {
    "r": 34,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 123.364,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56394,
    "c": 0.1673,
    "h": 143.6
  },
  "luminance": 0.19543
}

Semantic roles & 50–950 ramp

primary
#228D28
secondary
#B951B4
accent
#44DBE4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #228D28

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

Preview Lab → · Contrast checker → · Palette generator →

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