#227B2E#227B2E

#227B2E is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.140 H 145.2°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#227B2E
RGBrgb(34, 123, 46)
HSLhsl(128, 57%, 31%)
HSVhsv(128, 72%, 48%)
CMYKcmyk(72.4%, 0%, 62.6%, 51.8%)
CIE-LABlab(45.22, -42.65, 34.00)
CIE-LCHlch(45.22, 54.54, 141.44°)
OKLaboklab(51.36% -0.1152 0.08)
OKLCHoklch(51.36% 0.14 145.2)
XYZxyz(8.2352, 14.7024, 4.9881)
Luminance0.1470 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B2E #7B226F
analogous
#427B22 #227B2E #227B5A
triadic
#227B2E #2E227B #7B2E22
tetradic
#227B2E #22427B #7B226F #7B5A22
square
#227B2E #22427B #7B226F #7B5A22
split-complementary
#227B2E #5A227B #7B2242
monochromatic
#071B0A #154B1C #227B2E #2FAB40 #4ACD5C

Accessibility & contrast

On white

5.33
#227B2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#227B2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227B2E
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227B2E#FFFFFF#000000##FFFFFF
##227B2E1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F26
Deuteranopia (green-blind)
#736834
Tritanopia (blue-blind)
#00786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227b2e;
/* rgb */ color: rgb(34, 123, 46);
/* oklch */ color: oklch(51.4% 0.140 145.2);
Tailwind
colors: {
  custom: {
    50: '#6ba26a',
    500: '#227b2e',
    950: '#000000',
  },
}
SCSS
$custom: #227b2e;
$custom-light: #6ba26a;
$custom-dark: #000000;
JSON
{
  "hex": "#227b2e",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 46
  },
  "hsl": {
    "h": 128.09,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51361,
    "c": 0.14025,
    "h": 145.2
  },
  "luminance": 0.14703
}

Semantic roles & 50–950 ramp

primary
#227B2E
secondary
#AE4BA0
accent
#48CBE0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #227B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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