#227A2E#227A2E

#227A2E is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.139 H 145.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#227A2E
RGBrgb(34, 122, 46)
HSLhsl(128, 56%, 31%)
HSVhsv(128, 72%, 48%)
CMYKcmyk(72.1%, 0%, 62.3%, 52.2%)
CIE-LABlab(44.88, -42.27, 33.60)
CIE-LCHlch(44.88, 54.00, 141.52°)
OKLaboklab(51.08% -0.1142 0.0791)
OKLCHoklch(51.08% 0.139 145.3)
XYZxyz(8.1118, 14.4555, 4.9469)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A2E #7A226E
analogous
#427A22 #227A2E #227A5A
triadic
#227A2E #2E227A #7A2E22
tetradic
#227A2E #22427A #7A226E #7A5A22
square
#227A2E #22427A #7A226E #7A5A22
split-complementary
#227A2E #5A227A #7A2242
monochromatic
#071A0A #154A1C #227A2E #2FAA40 #4ACD5C

Accessibility & contrast

On white

5.40
#227A2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#227A2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A2E
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A2E#FFFFFF#000000##FFFFFF
##227A2E1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F26
Deuteranopia (green-blind)
#726734
Tritanopia (blue-blind)
#01776A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a2e;
/* rgb */ color: rgb(34, 122, 46);
/* oklch */ color: oklch(51.1% 0.139 145.3);
Tailwind
colors: {
  custom: {
    50: '#6ba169',
    500: '#227a2e',
    950: '#000000',
  },
}
SCSS
$custom: #227a2e;
$custom-light: #6ba169;
$custom-dark: #000000;
JSON
{
  "hex": "#227a2e",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 46
  },
  "hsl": {
    "h": 128.182,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51076,
    "c": 0.13893,
    "h": 145.3
  },
  "luminance": 0.14456
}

Semantic roles & 50–950 ramp

primary
#227A2E
secondary
#AD4B9F
accent
#48CBE0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #227A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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