#227B2F#227B2F

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

Color values

HEX#227B2F
RGBrgb(34, 123, 47)
HSLhsl(129, 57%, 31%)
HSVhsv(129, 72%, 48%)
CMYKcmyk(72.4%, 0%, 61.8%, 51.8%)
CIE-LABlab(45.23, -42.52, 33.52)
CIE-LCHlch(45.23, 54.14, 141.75°)
OKLaboklab(51.37% -0.1148 0.079)
OKLCHoklch(51.37% 0.139 145.5)
XYZxyz(8.2552, 14.7103, 5.0931)
Luminance0.1471 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B2F #7B226E
analogous
#417B22 #227B2F #227B5B
triadic
#227B2F #2F227B #7B2F22
tetradic
#227B2F #22417B #7B226E #7B5B22
square
#227B2F #22417B #7B226E #7B5B22
split-complementary
#227B2F #5B227B #7B2241
monochromatic
#071B0A #154B1D #227B2F #2FAB41 #4ACD5D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227B2F#FFFFFF#000000##FFFFFF
##227B2F1.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)
#7D6F27
Deuteranopia (green-blind)
#736835
Tritanopia (blue-blind)
#00786B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227b2f;
/* rgb */ color: rgb(34, 123, 47);
/* oklch */ color: oklch(51.4% 0.139 145.5);
Tailwind
colors: {
  custom: {
    50: '#6ba26a',
    500: '#227b2f',
    950: '#000000',
  },
}
SCSS
$custom: #227b2f;
$custom-light: #6ba26a;
$custom-dark: #000000;
JSON
{
  "hex": "#227b2f",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 128.764,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51374,
    "c": 0.13939,
    "h": 145.5
  },
  "luminance": 0.14711
}

Semantic roles & 50–950 ramp

primary
#227B2F
secondary
#AE4B9F
accent
#48CAE0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #227B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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