#228D2F#228D2F

#228D2F is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.5% C 0.162 H 144.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#228D2F
RGBrgb(34, 141, 47)
HSLhsl(127, 61%, 34%)
HSVhsv(127, 76%, 55%)
CMYKcmyk(75.9%, 0%, 66.7%, 44.7%)
CIE-LABlab(51.37, -49.01, 40.45)
CIE-LCHlch(51.37, 63.54, 140.46°)
OKLaboklab(56.46% -0.1324 0.0939)
OKLCHoklch(56.46% 0.162 144.7)
XYZxyz(10.6969, 19.5938, 5.9070)
Luminance0.1960 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228D2F #8D2280
analogous
#4B8D22 #228D2F #228D65
triadic
#228D2F #2F228D #8D2F22
tetradic
#228D2F #224B8D #8D2280 #8D6522
square
#228D2F #224B8D #8D2280 #8D6522
split-complementary
#228D2F #65228D #8D224B
monochromatic
#0A2A0E #165C1F #228D2F #2EBE3F #54D663

Accessibility & contrast

On white

4.27
#228D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#228D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228D2F
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228D2F#FFFFFF#000000##000000
##228D2F1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#908023
Deuteranopia (green-blind)
#837737
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228d2f;
/* rgb */ color: rgb(34, 141, 47);
/* oklch */ color: oklch(56.5% 0.162 144.7);
Tailwind
colors: {
  custom: {
    50: '#6faf6c',
    500: '#228d2f',
    950: '#000000',
  },
}
SCSS
$custom: #228d2f;
$custom-light: #6faf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#228d2f",
  "rgb": {
    "r": 34,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 127.29,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56463,
    "c": 0.1623,
    "h": 144.7
  },
  "luminance": 0.19595
}

Semantic roles & 50–950 ramp

primary
#228D2F
secondary
#B951AD
accent
#44D1E4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #228D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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