#228A28#228A28

#228A28 is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.5% C 0.164 H 143.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#228A28
RGBrgb(34, 138, 40)
HSLhsl(123, 60%, 34%)
HSVhsv(123, 75%, 54%)
CMYKcmyk(75.4%, 0%, 71%, 45.9%)
CIE-LABlab(50.30, -48.70, 42.32)
CIE-LCHlch(50.30, 64.52, 139.01°)
OKLaboklab(55.55% -0.1319 0.097)
OKLCHoklch(55.55% 0.164 143.7)
XYZxyz(10.1305, 18.6691, 5.0767)
Luminance0.1867 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228A28 #8A2284
analogous
#508A22 #228A28 #228A5C
triadic
#228A28 #28228A #8A2822
tetradic
#228A28 #22508A #8A2284 #8A5C22
square
#228A28 #22508A #8A2284 #8A5C22
split-complementary
#228A28 #5C228A #8A2250
monochromatic
#0A280C #16591A #228A28 #2EBB36 #52D45A

Accessibility & contrast

On white

4.44
#228A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#228A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228A28
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228A28#FFFFFF#000000##000000
##228A281.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D1A
Deuteranopia (green-blind)
#817531
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #228a28;
/* rgb */ color: rgb(34, 138, 40);
/* oklch */ color: oklch(55.5% 0.164 143.7);
Tailwind
colors: {
  custom: {
    50: '#6fad67',
    500: '#228a28',
    950: '#000000',
  },
}
SCSS
$custom: #228a28;
$custom-light: #6fad67;
$custom-dark: #000000;
JSON
{
  "hex": "#228a28",
  "rgb": {
    "r": 34,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 123.462,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5555,
    "c": 0.16372,
    "h": 143.7
  },
  "luminance": 0.1867
}

Semantic roles & 50–950 ramp

primary
#228A28
secondary
#B850B2
accent
#44DAE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #228A28

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

Preview Lab → · Contrast checker → · Palette generator →

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