#227E2B#227E2B

#227E2B is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.147 H 144.5°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#227E2B
RGBrgb(34, 126, 43)
HSLhsl(126, 58%, 31%)
HSVhsv(126, 73%, 49%)
CMYKcmyk(73%, 0%, 65.9%, 50.6%)
CIE-LABlab(46.22, -44.12, 36.57)
CIE-LCHlch(46.22, 57.31, 140.35°)
OKLaboklab(52.18% -0.1193 0.0852)
OKLCHoklch(52.18% 0.147 144.5)
XYZxyz(8.5560, 15.4353, 4.8134)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E2B #7E2275
analogous
#477E22 #227E2B #227E59
triadic
#227E2B #2B227E #7E2B22
tetradic
#227E2B #22477E #7E2275 #7E5922
square
#227E2B #22477E #7E2275 #7E5922
split-complementary
#227E2B #59227E #7E2247
monochromatic
#081E0A #154E1B #227E2B #2FAE3B #4CCF59

Accessibility & contrast

On white

5.14
#227E2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #227E2B
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E2B#FFFFFF#000000##FFFFFF
##227E2B1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807221
Deuteranopia (green-blind)
#766B32
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227e2b;
/* rgb */ color: rgb(34, 126, 43);
/* oklch */ color: oklch(52.2% 0.147 144.5);
Tailwind
colors: {
  custom: {
    50: '#6ca468',
    500: '#227e2b',
    950: '#000000',
  },
}
SCSS
$custom: #227e2b;
$custom-light: #6ca468;
$custom-dark: #000000;
JSON
{
  "hex": "#227e2b",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 43
  },
  "hsl": {
    "h": 125.87,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5218,
    "c": 0.14662,
    "h": 144.5
  },
  "luminance": 0.15436
}

Semantic roles & 50–950 ramp

primary
#227E2B
secondary
#B14BA7
accent
#47D2E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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