#228C40#228C40

#228C40 is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.4% C 0.147 H 148.3°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#228C40
RGBrgb(34, 140, 64)
HSLhsl(137, 61%, 34%)
HSVhsv(137, 76%, 55%)
CMYKcmyk(75.7%, 0%, 54.3%, 45.1%)
CIE-LABlab(51.23, -46.39, 32.04)
CIE-LCHlch(51.23, 56.38, 145.37°)
OKLaboklab(56.4% -0.1248 0.0771)
OKLCHoklch(56.4% 0.147 148.3)
XYZxyz(10.9623, 19.4651, 8.0289)
Luminance0.1947 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C40 #8C226E
analogous
#398C22 #228C40 #228C75
triadic
#228C40 #40228C #8C4022
tetradic
#228C40 #22398C #8C226E #8C7522
square
#228C40 #22398C #8C226E #8C7522
split-complementary
#228C40 #75228C #8C2239
monochromatic
#0A2A13 #165B29 #228C40 #2EBD57 #53D578

Accessibility & contrast

On white

4.29
#228C40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#228C40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228C40
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228C40#FFFFFF#000000##000000
##228C401.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7F39
Deuteranopia (green-blind)
#817746
Tritanopia (blue-blind)
#00897B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228c40;
/* rgb */ color: rgb(34, 140, 64);
/* oklch */ color: oklch(56.4% 0.147 148.3);
Tailwind
colors: {
  custom: {
    50: '#6eaf77',
    500: '#228c40',
    950: '#000000',
  },
}
SCSS
$custom: #228c40;
$custom-light: #6eaf77;
$custom-dark: #000000;
JSON
{
  "hex": "#228c40",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 64
  },
  "hsl": {
    "h": 136.981,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56402,
    "c": 0.14668,
    "h": 148.3
  },
  "luminance": 0.19466
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #228C40

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

Preview Lab → · Contrast checker → · Palette generator →

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