#227E2A#227E2A

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

Color values

HEX#227E2A
RGBrgb(34, 126, 42)
HSLhsl(125, 58%, 31%)
HSVhsv(125, 73%, 49%)
CMYKcmyk(73%, 0%, 66.7%, 50.6%)
CIE-LABlab(46.21, -44.24, 37.02)
CIE-LCHlch(46.21, 57.69, 140.08°)
OKLaboklab(52.17% -0.1197 0.086)
OKLCHoklch(52.17% 0.147 144.3)
XYZxyz(8.5379, 15.4280, 4.7180)
Luminance0.1543 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E2A #7E2276
analogous
#487E22 #227E2A #227E58
triadic
#227E2A #2A227E #7E2A22
tetradic
#227E2A #22487E #7E2276 #7E5822
square
#227E2A #22487E #7E2276 #7E5822
split-complementary
#227E2A #58227E #7E2248
monochromatic
#081E0A #154E1A #227E2A #2FAE3A #4CCF57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227E2A#FFFFFF#000000##FFFFFF
##227E2A1.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)
#807220
Deuteranopia (green-blind)
#766B31
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227e2a;
/* rgb */ color: rgb(34, 126, 42);
/* oklch */ color: oklch(52.2% 0.147 144.3);
Tailwind
colors: {
  custom: {
    50: '#6ca467',
    500: '#227e2a',
    950: '#000000',
  },
}
SCSS
$custom: #227e2a;
$custom-light: #6ca467;
$custom-dark: #000000;
JSON
{
  "hex": "#227e2a",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 125.217,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52169,
    "c": 0.14742,
    "h": 144.3
  },
  "luminance": 0.15429
}

Semantic roles & 50–950 ramp

primary
#227E2A
secondary
#B14BA8
accent
#47D3E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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