#227A2B#227A2B

#227A2B is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.141 H 144.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#227A2B
RGBrgb(34, 122, 43)
HSLhsl(126, 56%, 31%)
HSVhsv(126, 72%, 48%)
CMYKcmyk(72.1%, 0%, 64.8%, 52.2%)
CIE-LABlab(44.85, -42.65, 35.02)
CIE-LCHlch(44.85, 55.19, 140.61°)
OKLaboklab(51.04% -0.1154 0.0819)
OKLCHoklch(51.04% 0.141 144.6)
XYZxyz(8.0547, 14.4327, 4.6463)
Luminance0.1443 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A2B #7A2271
analogous
#457A22 #227A2B #227A57
triadic
#227A2B #2B227A #7A2B22
tetradic
#227A2B #22457A #7A2271 #7A5722
square
#227A2B #22457A #7A2271 #7A5722
split-complementary
#227A2B #57227A #7A2245
monochromatic
#071A09 #154A1A #227A2B #2FAA3C #4ACD57

Accessibility & contrast

On white

5.40
#227A2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #227A2B
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A2B#FFFFFF#000000##FFFFFF
##227A2B1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E22
Deuteranopia (green-blind)
#726732
Tritanopia (blue-blind)
#037769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a2b;
/* rgb */ color: rgb(34, 122, 43);
/* oklch */ color: oklch(51.0% 0.141 144.6);
Tailwind
colors: {
  custom: {
    50: '#6ba168',
    500: '#227a2b',
    950: '#000000',
  },
}
SCSS
$custom: #227a2b;
$custom-light: #6ba168;
$custom-dark: #000000;
JSON
{
  "hex": "#227a2b",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 43
  },
  "hsl": {
    "h": 126.136,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51039,
    "c": 0.14146,
    "h": 144.6
  },
  "luminance": 0.14434
}

Semantic roles & 50–950 ramp

primary
#227A2B
secondary
#AD4BA3
accent
#48D0E0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #227A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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