#228842#228842

#228842 is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.3% C 0.139 H 149.3°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#228842
RGBrgb(34, 136, 66)
HSLhsl(139, 60%, 33%)
HSVhsv(139, 75%, 53%)
CMYKcmyk(75%, 0%, 51.5%, 46.7%)
CIE-LABlab(49.91, -44.58, 29.37)
CIE-LCHlch(49.91, 53.38, 146.62°)
OKLaboklab(55.32% -0.1199 0.0712)
OKLCHoklch(55.32% 0.139 149.3)
XYZxyz(10.4464, 18.3406, 8.1427)
Luminance0.1834 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228842 #882268
analogous
#358822 #228842 #228875
triadic
#228842 #422288 #884222
tetradic
#228842 #223588 #882268 #887522
square
#228842 #223588 #882268 #887522
split-complementary
#228842 #752288 #882235
monochromatic
#0A2612 #16572A #228842 #2EB95A #51D37A

Accessibility & contrast

On white

4.50
#228842 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#228842 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228842
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228842#FFFFFF#000000##000000
##2288421.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#897C3C
Deuteranopia (green-blind)
#7D7347
Tritanopia (blue-blind)
#008578
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #228842;
/* rgb */ color: rgb(34, 136, 66);
/* oklch */ color: oklch(55.3% 0.139 149.3);
Tailwind
colors: {
  custom: {
    50: '#6dac78',
    500: '#228842',
    950: '#000000',
  },
}
SCSS
$custom: #228842;
$custom-light: #6dac78;
$custom-dark: #000000;
JSON
{
  "hex": "#228842",
  "rgb": {
    "r": 34,
    "g": 136,
    "b": 66
  },
  "hsl": {
    "h": 138.824,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55318,
    "c": 0.13947,
    "h": 149.3
  },
  "luminance": 0.18342
}

Semantic roles & 50–950 ramp

primary
#228842
secondary
#B74F96
accent
#45B1E3
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #228842

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

Preview Lab → · Contrast checker → · Palette generator →

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