#228D40#228D40

#228D40 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.148 H 148.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#228D40
RGBrgb(34, 141, 64)
HSLhsl(137, 61%, 34%)
HSVhsv(137, 76%, 55%)
CMYKcmyk(75.9%, 0%, 54.6%, 44.7%)
CIE-LABlab(51.56, -46.76, 32.45)
CIE-LCHlch(51.56, 56.91, 145.24°)
OKLaboklab(56.68% -0.1258 0.078)
OKLCHoklch(56.68% 0.148 148.2)
XYZxyz(11.1091, 19.7587, 8.0778)
Luminance0.1976 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228D40 #8D226F
analogous
#3A8D22 #228D40 #228D76
triadic
#228D40 #40228D #8D4022
tetradic
#228D40 #223A8D #8D226F #8D7622
square
#228D40 #223A8D #8D226F #8D7622
split-complementary
#228D40 #76228D #8D223A
monochromatic
#0A2A13 #165C2A #228D40 #2EBE56 #54D678

Accessibility & contrast

On white

4.24
#228D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#228D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228D40
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228D40#FFFFFF#000000##000000
##228D401.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E8039
Deuteranopia (green-blind)
#827746
Tritanopia (blue-blind)
#008A7B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228d40;
/* rgb */ color: rgb(34, 141, 64);
/* oklch */ color: oklch(56.7% 0.148 148.2);
Tailwind
colors: {
  custom: {
    50: '#6eaf77',
    500: '#228d40',
    950: '#000000',
  },
}
SCSS
$custom: #228d40;
$custom-light: #6eaf77;
$custom-dark: #000000;
JSON
{
  "hex": "#228d40",
  "rgb": {
    "r": 34,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 136.822,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.5668,
    "c": 0.148,
    "h": 148.2
  },
  "luminance": 0.1976
}

Semantic roles & 50–950 ramp

primary
#228D40
secondary
#B9519C
accent
#44B7E4
background
#F7FAF7
surface
#EDF5ED
border
#C8CFC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #228D40

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

Preview Lab → · Contrast checker → · Palette generator →

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