#227D42#227D42

#227D42 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.124 H 150.9°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#227D42
RGBrgb(34, 125, 66)
HSLhsl(141, 57%, 31%)
HSVhsv(141, 73%, 49%)
CMYKcmyk(72.8%, 0%, 47.2%, 51%)
CIE-LABlab(46.18, -40.31, 24.66)
CIE-LCHlch(46.18, 47.26, 148.54°)
OKLaboklab(52.24% -0.1085 0.0605)
OKLCHoklch(52.24% 0.124 150.9)
XYZxyz(8.9759, 15.3997, 7.6526)
Luminance0.1540 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D42 #7D225D
analogous
#2F7D22 #227D42 #227D6F
triadic
#227D42 #42227D #7D4222
tetradic
#227D42 #222F7D #7D225D #7D6F22
square
#227D42 #222F7D #7D225D #7D6F22
split-complementary
#227D42 #6F227D #7D222F
monochromatic
#081D0F #154D29 #227D42 #2FAD5B #4BCE79

Accessibility & contrast

On white

5.15
#227D42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#227D42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227D42
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D42#FFFFFF#000000##FFFFFF
##227D421.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E723D
Deuteranopia (green-blind)
#736A46
Tritanopia (blue-blind)
#007B6F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227d42;
/* rgb */ color: rgb(34, 125, 66);
/* oklch */ color: oklch(52.2% 0.124 150.9);
Tailwind
colors: {
  custom: {
    50: '#6ba377',
    500: '#227d42',
    950: '#000000',
  },
}
SCSS
$custom: #227d42;
$custom-light: #6ba377;
$custom-dark: #000000;
JSON
{
  "hex": "#227d42",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 66
  },
  "hsl": {
    "h": 141.099,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52236,
    "c": 0.12429,
    "h": 150.9
  },
  "luminance": 0.15401
}

Semantic roles & 50–950 ramp

primary
#227D42
secondary
#B04B8C
accent
#47ABE0
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #227D42

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

Preview Lab → · Contrast checker → · Palette generator →

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