#227B1A#227B1A

#227B1A is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.155 H 141.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#227B1A
RGBrgb(34, 123, 26)
HSLhsl(115, 65%, 29%)
HSVhsv(115, 79%, 48%)
CMYKcmyk(72.4%, 0%, 78.9%, 51.8%)
CIE-LABlab(45.05, -44.69, 42.45)
CIE-LCHlch(45.05, 61.64, 136.47°)
OKLaboklab(51.17% -0.1217 0.0953)
OKLCHoklch(51.17% 0.155 141.9)
XYZxyz(7.9287, 14.5797, 3.3734)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B1A #731A7B
analogous
#537B1A #227B1A #1A7B43
triadic
#227B1A #1A227B #7B1A22
tetradic
#227B1A #1A537B #731A7B #7B431A
square
#227B1A #1A537B #731A7B #7B431A
split-complementary
#227B1A #431A7B #7B1A53
monochromatic
#071905 #14480F #227B1A #30AE25 #47D53A

Accessibility & contrast

On white

5.36
#227B1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#227B1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227B1A
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227B1A#FFFFFF#000000##FFFFFF
##227B1A1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F04
Deuteranopia (green-blind)
#746825
Tritanopia (blue-blind)
#0A7769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227b1a;
/* rgb */ color: rgb(34, 123, 26);
/* oklch */ color: oklch(51.2% 0.155 141.9);
Tailwind
colors: {
  custom: {
    50: '#6ca25e',
    500: '#227b1a',
    950: '#000000',
  },
}
SCSS
$custom: #227b1a;
$custom-light: #6ca25e;
$custom-dark: #000000;
JSON
{
  "hex": "#227b1a",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 115.052,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51165,
    "c": 0.15464,
    "h": 141.9
  },
  "luminance": 0.14581
}

Semantic roles & 50–950 ramp

primary
#227B1A
secondary
#A642AF
accent
#40E8DA
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #227B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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