#228F28#228F28

#228F28 is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.170 H 143.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#228F28
RGBrgb(34, 143, 40)
HSLhsl(123, 62%, 35%)
HSVhsv(123, 76%, 56%)
CMYKcmyk(76.2%, 0%, 72%, 43.9%)
CIE-LABlab(51.99, -50.41, 44.10)
CIE-LCHlch(51.99, 66.98, 138.82°)
OKLaboklab(56.96% -0.1365 0.1007)
OKLCHoklch(56.96% 0.17 143.6)
XYZxyz(10.8645, 20.1370, 5.3213)
Luminance0.2014 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F28 #8F2289
analogous
#528F22 #228F28 #228F5F
triadic
#228F28 #28228F #8F2822
tetradic
#228F28 #22528F #8F2289 #8F5F22
square
#228F28 #22528F #8F2289 #8F5F22
split-complementary
#228F28 #5F228F #8F2252
monochromatic
#0A2C0C #165E1A #228F28 #2EC036 #55D75C

Accessibility & contrast

On white

4.18
#228F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#228F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F28
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F28#FFFFFF#000000##000000
##228F281.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928118
Deuteranopia (green-blind)
#867932
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f28;
/* rgb */ color: rgb(34, 143, 40);
/* oklch */ color: oklch(57.0% 0.170 143.6);
Tailwind
colors: {
  custom: {
    50: '#70b168',
    500: '#228f28',
    950: '#000000',
  },
}
SCSS
$custom: #228f28;
$custom-light: #70b168;
$custom-dark: #000000;
JSON
{
  "hex": "#228f28",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 123.303,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.56956,
    "c": 0.16968,
    "h": 143.6
  },
  "luminance": 0.20138
}

Semantic roles & 50–950 ramp

primary
#228F28
secondary
#BA52B5
accent
#43DCE5
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228F28

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

Preview Lab → · Contrast checker → · Palette generator →

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