#227940#227940

#227940 is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.1% C 0.121 H 150.8°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#227940
RGBrgb(34, 121, 64)
HSLhsl(141, 56%, 30%)
HSVhsv(141, 72%, 47%)
CMYKcmyk(71.9%, 0%, 47.1%, 52.5%)
CIE-LABlab(44.78, -39.07, 23.98)
CIE-LCHlch(44.78, 45.84, 148.46°)
OKLaboklab(51.07% -0.1052 0.0589)
OKLCHoklch(51.07% 0.121 150.8)
XYZxyz(8.4218, 14.3841, 7.1821)
Luminance0.1439 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227940 #79225B
analogous
#2F7922 #227940 #22796B
triadic
#227940 #402279 #794022
tetradic
#227940 #222F79 #79225B #796B22
square
#227940 #222F79 #79225B #796B22
split-complementary
#227940 #6B2279 #79222F
monochromatic
#07190D #154927 #227940 #2FA959 #49CC76

Accessibility & contrast

On white

5.42
#227940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#227940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227940
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227940#FFFFFF#000000##FFFFFF
##2279401.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6E3C
Deuteranopia (green-blind)
#6F6744
Tritanopia (blue-blind)
#00776B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227940;
/* rgb */ color: rgb(34, 121, 64);
/* oklch */ color: oklch(51.1% 0.121 150.8);
Tailwind
colors: {
  custom: {
    50: '#6aa076',
    500: '#227940',
    950: '#000000',
  },
}
SCSS
$custom: #227940;
$custom-light: #6aa076;
$custom-dark: #000000;
JSON
{
  "hex": "#227940",
  "rgb": {
    "r": 34,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 140.69,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51072,
    "c": 0.12061,
    "h": 150.8
  },
  "luminance": 0.14385
}

Semantic roles & 50–950 ramp

primary
#227940
secondary
#AC4B8A
accent
#48ABDF
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070F08
muted
#7A7E7B

Preview Lab

Preview with #227940

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

Preview Lab → · Contrast checker → · Palette generator →

#227940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva