#228240#228240

#228240 is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.6% C 0.133 H 149.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#228240
RGBrgb(34, 130, 64)
HSLhsl(139, 59%, 32%)
HSVhsv(139, 74%, 51%)
CMYKcmyk(73.8%, 0%, 50.8%, 49%)
CIE-LABlab(47.85, -42.62, 27.87)
CIE-LCHlch(47.85, 50.92, 146.82°)
OKLaboklab(53.61% -0.1147 0.0677)
OKLCHoklch(53.61% 0.133 149.4)
XYZxyz(9.5670, 16.6744, 7.5638)
Luminance0.1668 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228240 #822264
analogous
#348222 #228240 #228270
triadic
#228240 #402282 #824022
tetradic
#228240 #223482 #822264 #827022
square
#228240 #223482 #822264 #827022
split-complementary
#228240 #702282 #822234
monochromatic
#092110 #155128 #228240 #2FB358 #4ED177

Accessibility & contrast

On white

4.84
#228240 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#228240 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228240
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228240#FFFFFF#000000##FFFFFF
##2282401.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83763B
Deuteranopia (green-blind)
#786E45
Tritanopia (blue-blind)
#008073
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #228240;
/* rgb */ color: rgb(34, 130, 64);
/* oklch */ color: oklch(53.6% 0.133 149.4);
Tailwind
colors: {
  custom: {
    50: '#6ca776',
    500: '#228240',
    950: '#000000',
  },
}
SCSS
$custom: #228240;
$custom-light: #6ca776;
$custom-dark: #000000;
JSON
{
  "hex": "#228240",
  "rgb": {
    "r": 34,
    "g": 130,
    "b": 64
  },
  "hsl": {
    "h": 138.75,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53606,
    "c": 0.1332,
    "h": 149.4
  },
  "luminance": 0.16676
}

Semantic roles & 50–950 ramp

primary
#228240
secondary
#B44C93
accent
#46B1E2
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#081008
muted
#7A7F7B

Preview Lab

Preview with #228240

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

Preview Lab → · Contrast checker → · Palette generator →

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