#228C2F#228C2F

#228C2F is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.2% C 0.161 H 144.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#228C2F
RGBrgb(34, 140, 47)
HSLhsl(127, 61%, 34%)
HSVhsv(127, 76%, 55%)
CMYKcmyk(75.7%, 0%, 66.4%, 45.1%)
CIE-LABlab(51.04, -48.66, 40.08)
CIE-LCHlch(51.04, 63.04, 140.52°)
OKLaboklab(56.18% -0.1315 0.0931)
OKLCHoklch(56.18% 0.161 144.7)
XYZxyz(10.5501, 19.3003, 5.8581)
Luminance0.1930 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C2F #8C227F
analogous
#4A8C22 #228C2F #228C64
triadic
#228C2F #2F228C #8C2F22
tetradic
#228C2F #224A8C #8C227F #8C6422
square
#228C2F #224A8C #8C227F #8C6422
split-complementary
#228C2F #64228C #8C224A
monochromatic
#0A2A0E #165B1E #228C2F #2EBD40 #53D563

Accessibility & contrast

On white

4.32
#228C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#228C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228C2F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228C2F#FFFFFF#000000##000000
##228C2F1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F24
Deuteranopia (green-blind)
#837637
Tritanopia (blue-blind)
#008879
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228c2f;
/* rgb */ color: rgb(34, 140, 47);
/* oklch */ color: oklch(56.2% 0.161 144.7);
Tailwind
colors: {
  custom: {
    50: '#6faf6c',
    500: '#228c2f',
    950: '#000000',
  },
}
SCSS
$custom: #228c2f;
$custom-light: #6faf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#228c2f",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 47
  },
  "hsl": {
    "h": 127.358,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56182,
    "c": 0.16108,
    "h": 144.7
  },
  "luminance": 0.19301
}

Semantic roles & 50–950 ramp

primary
#228C2F
secondary
#B951AC
accent
#44D0E4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #228C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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