#227F40#227F40

#227F40 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.129 H 149.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#227F40
RGBrgb(34, 127, 64)
HSLhsl(139, 58%, 32%)
HSVhsv(139, 73%, 50%)
CMYKcmyk(73.2%, 0%, 49.6%, 50.2%)
CIE-LABlab(46.83, -41.45, 26.58)
CIE-LCHlch(46.83, 49.25, 147.33°)
OKLaboklab(52.76% -0.1116 0.0648)
OKLCHoklch(52.76% 0.129 149.8)
XYZxyz(9.1737, 15.8880, 7.4327)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F40 #7F2261
analogous
#337F22 #227F40 #227F6F
triadic
#227F40 #40227F #7F4022
tetradic
#227F40 #22337F #7F2261 #7F6F22
square
#227F40 #22337F #7F2261 #7F6F22
split-complementary
#227F40 #6F227F #7F2233
monochromatic
#081E0F #154F28 #227F40 #2FAF58 #4CCF76

Accessibility & contrast

On white

5.03
#227F40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#227F40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F40
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F40#FFFFFF#000000##FFFFFF
##227F401.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80743B
Deuteranopia (green-blind)
#756C44
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #227f40;
/* rgb */ color: rgb(34, 127, 64);
/* oklch */ color: oklch(52.8% 0.129 149.8);
Tailwind
colors: {
  custom: {
    50: '#6ba576',
    500: '#227f40',
    950: '#000000',
  },
}
SCSS
$custom: #227f40;
$custom-light: #6ba576;
$custom-dark: #000000;
JSON
{
  "hex": "#227f40",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 139.355,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52763,
    "c": 0.12905,
    "h": 149.8
  },
  "luminance": 0.15889
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #227F40

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

Preview Lab → · Contrast checker → · Palette generator →

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