#228C2D#228C2D

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

Color values

HEX#228C2D
RGBrgb(34, 140, 45)
HSLhsl(126, 61%, 34%)
HSVhsv(126, 76%, 55%)
CMYKcmyk(75.7%, 0%, 67.9%, 45.1%)
CIE-LABlab(51.02, -48.88, 40.95)
CIE-LCHlch(51.02, 63.76, 140.04°)
OKLaboklab(56.16% -0.1321 0.0947)
OKLCHoklch(56.16% 0.163 144.4)
XYZxyz(10.5107, 19.2845, 5.6505)
Luminance0.1929 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C2D #8C2281
analogous
#4C8C22 #228C2D #228C62
triadic
#228C2D #2D228C #8C2D22
tetradic
#228C2D #224C8C #8C2281 #8C6222
square
#228C2D #224C8C #8C2281 #8C6222
split-complementary
#228C2D #62228C #8C224C
monochromatic
#0A2A0D #165B1D #228C2D #2EBD3D #53D561

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228C2D#FFFFFF#000000##000000
##228C2D1.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)
#8F7F21
Deuteranopia (green-blind)
#837636
Tritanopia (blue-blind)
#008878
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228c2d;
/* rgb */ color: rgb(34, 140, 45);
/* oklch */ color: oklch(56.2% 0.163 144.4);
Tailwind
colors: {
  custom: {
    50: '#6faf6b',
    500: '#228c2d',
    950: '#000000',
  },
}
SCSS
$custom: #228c2d;
$custom-light: #6faf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#228c2d",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 45
  },
  "hsl": {
    "h": 126.226,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56161,
    "c": 0.16257,
    "h": 144.4
  },
  "luminance": 0.19286
}

Semantic roles & 50–950 ramp

primary
#228C2D
secondary
#B951AE
accent
#44D3E4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #228C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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