#227A2F#227A2F

#227A2F is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.138 H 145.5°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#227A2F
RGBrgb(34, 122, 47)
HSLhsl(129, 56%, 31%)
HSVhsv(129, 72%, 48%)
CMYKcmyk(72.1%, 0%, 61.5%, 52.2%)
CIE-LABlab(44.89, -42.14, 33.12)
CIE-LCHlch(44.89, 53.59, 141.84°)
OKLaboklab(51.09% -0.1138 0.0782)
OKLCHoklch(51.09% 0.138 145.5)
XYZxyz(8.1318, 14.4635, 5.0520)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A2F #7A226D
analogous
#417A22 #227A2F #227A5B
triadic
#227A2F #2F227A #7A2F22
tetradic
#227A2F #22417A #7A226D #7A5B22
square
#227A2F #22417A #7A226D #7A5B22
split-complementary
#227A2F #5B227A #7A2241
monochromatic
#071A0A #154A1D #227A2F #2FAA41 #4ACD5D

Accessibility & contrast

On white

5.39
#227A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#227A2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A2F
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A2F#FFFFFF#000000##FFFFFF
##227A2F1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F27
Deuteranopia (green-blind)
#726735
Tritanopia (blue-blind)
#00776A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a2f;
/* rgb */ color: rgb(34, 122, 47);
/* oklch */ color: oklch(51.1% 0.138 145.5);
Tailwind
colors: {
  custom: {
    50: '#6ba16a',
    500: '#227a2f',
    950: '#000000',
  },
}
SCSS
$custom: #227a2f;
$custom-light: #6ba16a;
$custom-dark: #000000;
JSON
{
  "hex": "#227a2f",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 47
  },
  "hsl": {
    "h": 128.864,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51089,
    "c": 0.13806,
    "h": 145.5
  },
  "luminance": 0.14464
}

Semantic roles & 50–950 ramp

primary
#227A2F
secondary
#AD4B9E
accent
#48C9E0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #227A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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