#227A40#227A40

#227A40 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.4% C 0.122 H 150.6°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#227A40
RGBrgb(34, 122, 64)
HSLhsl(140, 56%, 31%)
HSVhsv(140, 72%, 48%)
CMYKcmyk(72.1%, 0%, 47.5%, 52.2%)
CIE-LABlab(45.12, -39.47, 24.42)
CIE-LCHlch(45.12, 46.42, 148.26°)
OKLaboklab(51.35% -0.1063 0.0599)
OKLCHoklch(51.35% 0.122 150.6)
XYZxyz(8.5439, 14.6284, 7.2228)
Luminance0.1463 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A40 #7A225C
analogous
#307A22 #227A40 #227A6C
triadic
#227A40 #40227A #7A4022
tetradic
#227A40 #22307A #7A225C #7A6C22
square
#227A40 #22307A #7A225C #7A6C22
split-complementary
#227A40 #6C227A #7A2230
monochromatic
#071A0E #154A27 #227A40 #2FAA59 #4ACD76

Accessibility & contrast

On white

5.35
#227A40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#227A40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A40
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A40#FFFFFF#000000##FFFFFF
##227A401.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F3C
Deuteranopia (green-blind)
#706844
Tritanopia (blue-blind)
#00786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227a40;
/* rgb */ color: rgb(34, 122, 64);
/* oklch */ color: oklch(51.4% 0.122 150.6);
Tailwind
colors: {
  custom: {
    50: '#6aa176',
    500: '#227a40',
    950: '#000000',
  },
}
SCSS
$custom: #227a40;
$custom-light: #6aa176;
$custom-dark: #000000;
JSON
{
  "hex": "#227a40",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 64
  },
  "hsl": {
    "h": 140.455,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51354,
    "c": 0.12203,
    "h": 150.6
  },
  "luminance": 0.14629
}

Semantic roles & 50–950 ramp

primary
#227A40
secondary
#AD4B8B
accent
#48ACE0
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #227A40

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

Preview Lab → · Contrast checker → · Palette generator →

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