#228E2D#228E2D

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

Color values

HEX#228E2D
RGBrgb(34, 142, 45)
HSLhsl(126, 61%, 35%)
HSVhsv(126, 76%, 56%)
CMYKcmyk(76.1%, 0%, 68.3%, 44.3%)
CIE-LABlab(51.69, -49.57, 41.69)
CIE-LCHlch(51.69, 64.77, 139.94°)
OKLaboklab(56.72% -0.134 0.0962)
OKLCHoklch(56.72% 0.165 144.3)
XYZxyz(10.8056, 19.8743, 5.7488)
Luminance0.1988 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E2D #8E2283
analogous
#4D8E22 #228E2D #228E63
triadic
#228E2D #2D228E #8E2D22
tetradic
#228E2D #224D8E #8E2283 #8E6322
square
#228E2D #224D8E #8E2283 #8E6322
split-complementary
#228E2D #63228E #8E224D
monochromatic
#0A2B0E #165D1D #228E2D #2EBF3D #54D662

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228E2D#FFFFFF#000000##000000
##228E2D1.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)
#918020
Deuteranopia (green-blind)
#857836
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e2d;
/* rgb */ color: rgb(34, 142, 45);
/* oklch */ color: oklch(56.7% 0.165 144.3);
Tailwind
colors: {
  custom: {
    50: '#70b06b',
    500: '#228e2d',
    950: '#000000',
  },
}
SCSS
$custom: #228e2d;
$custom-light: #70b06b;
$custom-dark: #000000;
JSON
{
  "hex": "#228e2d",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 126.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56722,
    "c": 0.165,
    "h": 144.3
  },
  "luminance": 0.19876
}

Semantic roles & 50–950 ramp

primary
#228E2D
secondary
#BA52AF
accent
#43D4E4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #228E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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