#227E2F#227E2F

#227E2F is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.143 H 145.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#227E2F
RGBrgb(34, 126, 47)
HSLhsl(128, 58%, 31%)
HSVhsv(128, 73%, 49%)
CMYKcmyk(73%, 0%, 62.7%, 50.6%)
CIE-LABlab(46.27, -43.63, 34.70)
CIE-LCHlch(46.27, 55.75, 141.50°)
OKLaboklab(52.23% -0.1178 0.0816)
OKLCHoklch(52.23% 0.143 145.3)
XYZxyz(8.6330, 15.4661, 5.2190)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E2F #7E2271
analogous
#437E22 #227E2F #227E5D
triadic
#227E2F #2F227E #7E2F22
tetradic
#227E2F #22437E #7E2271 #7E5D22
square
#227E2F #22437E #7E2271 #7E5D22
split-complementary
#227E2F #5D227E #7E2243
monochromatic
#081E0B #154E1D #227E2F #2FAE41 #4CCF5E

Accessibility & contrast

On white

5.13
#227E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#227E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227E2F
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E2F#FFFFFF#000000##FFFFFF
##227E2F1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807226
Deuteranopia (green-blind)
#756B36
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227e2f;
/* rgb */ color: rgb(34, 126, 47);
/* oklch */ color: oklch(52.2% 0.143 145.3);
Tailwind
colors: {
  custom: {
    50: '#6ba46a',
    500: '#227e2f',
    950: '#000000',
  },
}
SCSS
$custom: #227e2f;
$custom-light: #6ba46a;
$custom-dark: #000000;
JSON
{
  "hex": "#227e2f",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 128.478,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52228,
    "c": 0.14333,
    "h": 145.3
  },
  "luminance": 0.15467
}

Semantic roles & 50–950 ramp

primary
#227E2F
secondary
#B14BA2
accent
#47CBE1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #227E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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