#227D40#227D40

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

Color values

HEX#227D40
RGBrgb(34, 125, 64)
HSLhsl(140, 57%, 31%)
HSVhsv(140, 73%, 49%)
CMYKcmyk(72.8%, 0%, 48.8%, 51%)
CIE-LABlab(46.15, -40.67, 25.72)
CIE-LCHlch(46.15, 48.12, 147.69°)
OKLaboklab(52.2% -0.1095 0.0629)
OKLCHoklch(52.2% 0.126 150.1)
XYZxyz(8.9180, 15.3765, 7.3475)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D40 #7D225F
analogous
#317D22 #227D40 #227D6D
triadic
#227D40 #40227D #7D4022
tetradic
#227D40 #22317D #7D225F #7D6D22
square
#227D40 #22317D #7D225F #7D6D22
split-complementary
#227D40 #6D227D #7D2231
monochromatic
#081D0F #154D27 #227D40 #2FAD59 #4BCE76

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227D40#FFFFFF#000000##FFFFFF
##227D401.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)
#7E723B
Deuteranopia (green-blind)
#736A44
Tritanopia (blue-blind)
#007B6F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227d40;
/* rgb */ color: rgb(34, 125, 64);
/* oklch */ color: oklch(52.2% 0.126 150.1);
Tailwind
colors: {
  custom: {
    50: '#6ba376',
    500: '#227d40',
    950: '#000000',
  },
}
SCSS
$custom: #227d40;
$custom-light: #6ba376;
$custom-dark: #000000;
JSON
{
  "hex": "#227d40",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 64
  },
  "hsl": {
    "h": 139.78,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.522,
    "c": 0.12626,
    "h": 150.1
  },
  "luminance": 0.15377
}

Semantic roles & 50–950 ramp

primary
#227D40
secondary
#B04B8F
accent
#47AEE0
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #227D40

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

Preview Lab → · Contrast checker → · Palette generator →

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