#228E2F#228E2F

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

Color values

HEX#228E2F
RGBrgb(34, 142, 47)
HSLhsl(127, 61%, 35%)
HSVhsv(127, 76%, 56%)
CMYKcmyk(76.1%, 0%, 66.9%, 44.3%)
CIE-LABlab(51.71, -49.35, 40.82)
CIE-LCHlch(51.71, 64.05, 140.40°)
OKLaboklab(56.74% -0.1333 0.0947)
OKLCHoklch(56.74% 0.164 144.6)
XYZxyz(10.8450, 19.8901, 5.9564)
Luminance0.1989 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E2F #8E2281
analogous
#4B8E22 #228E2F #228E65
triadic
#228E2F #2F228E #8E2F22
tetradic
#228E2F #224B8E #8E2281 #8E6522
square
#228E2F #224B8E #8E2281 #8E6522
split-complementary
#228E2F #65228E #8E224B
monochromatic
#0A2B0E #165D1F #228E2F #2EBF3F #54D664

Accessibility & contrast

On white

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

On black

4.98
#228E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228E2F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228E2F#FFFFFF#000000##000000
##228E2F1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918023
Deuteranopia (green-blind)
#847838
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e2f;
/* rgb */ color: rgb(34, 142, 47);
/* oklch */ color: oklch(56.7% 0.164 144.6);
Tailwind
colors: {
  custom: {
    50: '#6fb06c',
    500: '#228e2f',
    950: '#000000',
  },
}
SCSS
$custom: #228e2f;
$custom-light: #6fb06c;
$custom-dark: #000000;
JSON
{
  "hex": "#228e2f",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 127.222,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56743,
    "c": 0.16353,
    "h": 144.6
  },
  "luminance": 0.19891
}

Semantic roles & 50–950 ramp

primary
#228E2F
secondary
#BA52AD
accent
#43D1E4
background
#F7FAF6
surface
#EDF5EC
border
#C8CFC7
text
#091107
muted
#7B807A

Preview Lab

Preview with #228E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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