#228E42#228E42

#228E42 is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.147 H 148.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#228E42
RGBrgb(34, 142, 66)
HSLhsl(138, 61%, 35%)
HSVhsv(138, 76%, 56%)
CMYKcmyk(76.1%, 0%, 53.5%, 44.3%)
CIE-LABlab(51.93, -46.81, 31.86)
CIE-LCHlch(51.93, 56.63, 145.76°)
OKLaboklab(56.99% -0.1259 0.0768)
OKLCHoklch(56.99% 0.147 148.6)
XYZxyz(11.3152, 20.0781, 8.4323)
Luminance0.2008 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E42 #8E226E
analogous
#388E22 #228E42 #228E78
triadic
#228E42 #42228E #8E4222
tetradic
#228E42 #22388E #8E226E #8E7822
square
#228E42 #22388E #8E226E #8E7822
split-complementary
#228E42 #78228E #8E2238
monochromatic
#0A2B14 #165D2B #228E42 #2EBF59 #54D67B

Accessibility & contrast

On white

4.19
#228E42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#228E42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228E42
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228E42#FFFFFF#000000##000000
##228E421.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F813B
Deuteranopia (green-blind)
#837848
Tritanopia (blue-blind)
#008B7D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228e42;
/* rgb */ color: rgb(34, 142, 66);
/* oklch */ color: oklch(57.0% 0.147 148.6);
Tailwind
colors: {
  custom: {
    50: '#6fb078',
    500: '#228e42',
    950: '#000000',
  },
}
SCSS
$custom: #228e42;
$custom-light: #6fb078;
$custom-dark: #000000;
JSON
{
  "hex": "#228e42",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 66
  },
  "hsl": {
    "h": 137.778,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56988,
    "c": 0.14749,
    "h": 148.6
  },
  "luminance": 0.20079
}

Semantic roles & 50–950 ramp

primary
#228E42
secondary
#BA529B
accent
#43B5E4
background
#F7FAF7
surface
#EDF5ED
border
#C8CFC8
text
#081109
muted
#7B807B

Preview Lab

Preview with #228E42

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

Preview Lab → · Contrast checker → · Palette generator →

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