#228940#228940

#228940 is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.6% C 0.143 H 148.6°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#228940
RGBrgb(34, 137, 64)
HSLhsl(137, 60%, 34%)
HSVhsv(137, 75%, 54%)
CMYKcmyk(75.2%, 0%, 53.3%, 46.3%)
CIE-LABlab(50.22, -45.27, 30.80)
CIE-LCHlch(50.22, 54.76, 145.77°)
OKLaboklab(55.57% -0.1218 0.0743)
OKLCHoklch(55.57% 0.143 148.6)
XYZxyz(10.5299, 18.6004, 7.8848)
Luminance0.1860 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228940 #89226B
analogous
#378922 #228940 #228973
triadic
#228940 #402289 #894022
tetradic
#228940 #223789 #89226B #897322
square
#228940 #223789 #89226B #897322
split-complementary
#228940 #732289 #892237
monochromatic
#0A2712 #165829 #228940 #2EBA57 #51D477

Accessibility & contrast

On white

4.45
#228940 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#228940 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228940
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228940#FFFFFF#000000##000000
##2289401.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7D3A
Deuteranopia (green-blind)
#7E7445
Tritanopia (blue-blind)
#008678
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #228940;
/* rgb */ color: rgb(34, 137, 64);
/* oklch */ color: oklch(55.6% 0.143 148.6);
Tailwind
colors: {
  custom: {
    50: '#6dac76',
    500: '#228940',
    950: '#000000',
  },
}
SCSS
$custom: #228940;
$custom-light: #6dac76;
$custom-dark: #000000;
JSON
{
  "hex": "#228940",
  "rgb": {
    "r": 34,
    "g": 137,
    "b": 64
  },
  "hsl": {
    "h": 137.476,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.55565,
    "c": 0.14269,
    "h": 148.6
  },
  "luminance": 0.18602
}

Semantic roles & 50–950 ramp

primary
#228940
secondary
#B84F99
accent
#44B5E3
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #228940

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

Preview Lab → · Contrast checker → · Palette generator →

#228940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva