#228E2A#228E2A

#228E2A is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.7% C 0.167 H 143.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#228E2A
RGBrgb(34, 142, 42)
HSLhsl(124, 61%, 35%)
HSVhsv(124, 76%, 56%)
CMYKcmyk(76.1%, 0%, 70.4%, 44.3%)
CIE-LABlab(51.67, -49.88, 42.94)
CIE-LCHlch(51.67, 65.82, 139.27°)
OKLaboklab(56.69% -0.135 0.0985)
OKLCHoklch(56.69% 0.167 143.9)
XYZxyz(10.7499, 19.8520, 5.4553)
Luminance0.1985 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E2A #8E2286
analogous
#508E22 #228E2A #228E60
triadic
#228E2A #2A228E #8E2A22
tetradic
#228E2A #22508E #8E2286 #8E6022
square
#228E2A #22508E #8E2286 #8E6022
split-complementary
#228E2A #60228E #8E2250
monochromatic
#0A2B0D #165D1B #228E2A #2EBF39 #54D65E

Accessibility & contrast

On white

4.22
#228E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#228E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228E2A
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228E2A#FFFFFF#000000##000000
##228E2A1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#91801B
Deuteranopia (green-blind)
#857834
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e2a;
/* rgb */ color: rgb(34, 142, 42);
/* oklch */ color: oklch(56.7% 0.167 143.9);
Tailwind
colors: {
  custom: {
    50: '#70b069',
    500: '#228e2a',
    950: '#000000',
  },
}
SCSS
$custom: #228e2a;
$custom-light: #70b069;
$custom-dark: #000000;
JSON
{
  "hex": "#228e2a",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 124.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56693,
    "c": 0.16714,
    "h": 143.9
  },
  "luminance": 0.19853
}

Semantic roles & 50–950 ramp

primary
#228E2A
secondary
#BA52B2
accent
#43D9E4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #228E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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