#227C40#227C40

#227C40 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.125 H 150.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#227C40
RGBrgb(34, 124, 64)
HSLhsl(140, 57%, 31%)
HSVhsv(140, 73%, 49%)
CMYKcmyk(72.6%, 0%, 48.4%, 51.4%)
CIE-LABlab(45.80, -40.27, 25.29)
CIE-LCHlch(45.80, 47.55, 147.87°)
OKLaboklab(51.92% -0.1084 0.0619)
OKLCHoklch(51.92% 0.125 150.3)
XYZxyz(8.7920, 15.1246, 7.3055)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227C40 #7C225E
analogous
#317C22 #227C40 #227C6D
triadic
#227C40 #40227C #7C4022
tetradic
#227C40 #22317C #7C225E #7C6D22
square
#227C40 #22317C #7C225E #7C6D22
split-complementary
#227C40 #6D227C #7C2231
monochromatic
#081C0E #154C27 #227C40 #2FAC59 #4BCE76

Accessibility & contrast

On white

5.22
#227C40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#227C40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227C40
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227C40#FFFFFF#000000##FFFFFF
##227C401.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D713B
Deuteranopia (green-blind)
#726944
Tritanopia (blue-blind)
#007A6E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227c40;
/* rgb */ color: rgb(34, 124, 64);
/* oklch */ color: oklch(51.9% 0.125 150.3);
Tailwind
colors: {
  custom: {
    50: '#6aa376',
    500: '#227c40',
    950: '#000000',
  },
}
SCSS
$custom: #227c40;
$custom-light: #6aa376;
$custom-dark: #000000;
JSON
{
  "hex": "#227c40",
  "rgb": {
    "r": 34,
    "g": 124,
    "b": 64
  },
  "hsl": {
    "h": 140,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51918,
    "c": 0.12486,
    "h": 150.3
  },
  "luminance": 0.15126
}

Semantic roles & 50–950 ramp

primary
#227C40
secondary
#AF4B8D
accent
#48ADE0
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #227C40

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

Preview Lab → · Contrast checker → · Palette generator →

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