#228A42#228A42

#228A42 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.9% C 0.142 H 149.1°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#228A42
RGBrgb(34, 138, 66)
HSLhsl(138, 60%, 34%)
HSVhsv(138, 75%, 54%)
CMYKcmyk(75.4%, 0%, 52.2%, 45.9%)
CIE-LABlab(50.58, -45.33, 30.21)
CIE-LCHlch(50.58, 54.47, 146.32°)
OKLaboklab(55.88% -0.1219 0.0731)
OKLCHoklch(55.88% 0.142 149.1)
XYZxyz(10.7307, 18.9092, 8.2375)
Luminance0.1891 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228A42 #8A226A
analogous
#368A22 #228A42 #228A76
triadic
#228A42 #42228A #8A4222
tetradic
#228A42 #22368A #8A226A #8A7622
square
#228A42 #22368A #8A226A #8A7622
split-complementary
#228A42 #76228A #8A2236
monochromatic
#0A2813 #16592B #228A42 #2EBB59 #52D47A

Accessibility & contrast

On white

4.39
#228A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#228A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228A42
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228A42#FFFFFF#000000##000000
##228A421.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7E3C
Deuteranopia (green-blind)
#7F7547
Tritanopia (blue-blind)
#008779
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #228a42;
/* rgb */ color: rgb(34, 138, 66);
/* oklch */ color: oklch(55.9% 0.142 149.1);
Tailwind
colors: {
  custom: {
    50: '#6ead78',
    500: '#228a42',
    950: '#000000',
  },
}
SCSS
$custom: #228a42;
$custom-light: #6ead78;
$custom-dark: #000000;
JSON
{
  "hex": "#228a42",
  "rgb": {
    "r": 34,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 138.462,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.55875,
    "c": 0.14216,
    "h": 149.1
  },
  "luminance": 0.1891
}

Semantic roles & 50–950 ramp

primary
#228A42
secondary
#B85098
accent
#44B3E4
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #228A42

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

Preview Lab → · Contrast checker → · Palette generator →

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