#227E40#227E40

#227E40 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.128 H 150.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#227E40
RGBrgb(34, 126, 64)
HSLhsl(140, 58%, 31%)
HSVhsv(140, 73%, 49%)
CMYKcmyk(73%, 0%, 49.2%, 50.6%)
CIE-LABlab(46.49, -41.06, 26.15)
CIE-LCHlch(46.49, 48.68, 147.50°)
OKLaboklab(52.48% -0.1105 0.0639)
OKLCHoklch(52.48% 0.128 150)
XYZxyz(9.0452, 15.6309, 7.3899)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E40 #7E2260
analogous
#327E22 #227E40 #227E6E
triadic
#227E40 #40227E #7E4022
tetradic
#227E40 #22327E #7E2260 #7E6E22
square
#227E40 #22327E #7E2260 #7E6E22
split-complementary
#227E40 #6E227E #7E2232
monochromatic
#081E0F #154E28 #227E40 #2FAE58 #4CCF76

Accessibility & contrast

On white

5.09
#227E40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #227E40
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E40#FFFFFF#000000##FFFFFF
##227E401.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F733B
Deuteranopia (green-blind)
#746B44
Tritanopia (blue-blind)
#007C6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227e40;
/* rgb */ color: rgb(34, 126, 64);
/* oklch */ color: oklch(52.5% 0.128 150.0);
Tailwind
colors: {
  custom: {
    50: '#6ba476',
    500: '#227e40',
    950: '#000000',
  },
}
SCSS
$custom: #227e40;
$custom-light: #6ba476;
$custom-dark: #000000;
JSON
{
  "hex": "#227e40",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 64
  },
  "hsl": {
    "h": 139.565,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52482,
    "c": 0.12766,
    "h": 150
  },
  "luminance": 0.15632
}

Semantic roles & 50–950 ramp

primary
#227E40
secondary
#B14B90
accent
#47AFE1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #227E40

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

Preview Lab → · Contrast checker → · Palette generator →

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