#227E42#227E42

#227E42 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.126 H 150.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#227E42
RGBrgb(34, 126, 66)
HSLhsl(141, 58%, 31%)
HSVhsv(141, 73%, 49%)
CMYKcmyk(73%, 0%, 47.6%, 50.6%)
CIE-LABlab(46.52, -40.71, 25.10)
CIE-LCHlch(46.52, 47.82, 148.34°)
OKLaboklab(52.52% -0.1096 0.0615)
OKLCHoklch(52.52% 0.126 150.7)
XYZxyz(9.1032, 15.6541, 7.6950)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E42 #7E225E
analogous
#307E22 #227E42 #227E70
triadic
#227E42 #42227E #7E4222
tetradic
#227E42 #22307E #7E225E #7E7022
square
#227E42 #22307E #7E225E #7E7022
split-complementary
#227E42 #70227E #7E2230
monochromatic
#081E10 #154E29 #227E42 #2FAE5B #4CCF79

Accessibility & contrast

On white

5.08
#227E42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#227E42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227E42
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E42#FFFFFF#000000##FFFFFF
##227E421.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F733D
Deuteranopia (green-blind)
#736B46
Tritanopia (blue-blind)
#007C70
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227e42;
/* rgb */ color: rgb(34, 126, 66);
/* oklch */ color: oklch(52.5% 0.126 150.7);
Tailwind
colors: {
  custom: {
    50: '#6ba477',
    500: '#227e42',
    950: '#000000',
  },
}
SCSS
$custom: #227e42;
$custom-light: #6ba477;
$custom-dark: #000000;
JSON
{
  "hex": "#227e42",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 66
  },
  "hsl": {
    "h": 140.87,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52517,
    "c": 0.1257,
    "h": 150.7
  },
  "luminance": 0.15655
}

Semantic roles & 50–950 ramp

primary
#227E42
secondary
#B14B8D
accent
#47ABE1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #227E42

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

Preview Lab → · Contrast checker → · Palette generator →

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