#227A38#227A38

#227A38 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.130 H 147.9°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#227A38
RGBrgb(34, 122, 56)
HSLhsl(135, 56%, 31%)
HSVhsv(135, 72%, 48%)
CMYKcmyk(72.1%, 0%, 54.1%, 52.2%)
CIE-LABlab(45.00, -40.83, 28.61)
CIE-LCHlch(45.00, 49.86, 144.98°)
OKLaboklab(51.22% -0.11 0.069)
OKLCHoklch(51.22% 0.13 147.9)
XYZxyz(8.3324, 14.5438, 6.1087)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A38 #7A2264
analogous
#387A22 #227A38 #227A64
triadic
#227A38 #38227A #7A3822
tetradic
#227A38 #22387A #7A2264 #7A6422
square
#227A38 #22387A #7A2264 #7A6422
split-complementary
#227A38 #64227A #7A2238
monochromatic
#071A0C #154A22 #227A38 #2FAA4E #4ACD6B

Accessibility & contrast

On white

5.37
#227A38 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#227A38 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A38
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A38#FFFFFF#000000##FFFFFF
##227A381.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F32
Deuteranopia (green-blind)
#71683D
Tritanopia (blue-blind)
#00776B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a38;
/* rgb */ color: rgb(34, 122, 56);
/* oklch */ color: oklch(51.2% 0.130 147.9);
Tailwind
colors: {
  custom: {
    50: '#6aa170',
    500: '#227a38',
    950: '#000000',
  },
}
SCSS
$custom: #227a38;
$custom-light: #6aa170;
$custom-dark: #000000;
JSON
{
  "hex": "#227a38",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 56
  },
  "hsl": {
    "h": 135,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51218,
    "c": 0.12983,
    "h": 147.9
  },
  "luminance": 0.14545
}

Semantic roles & 50–950 ramp

primary
#227A38
secondary
#AD4B94
accent
#48BAE0
background
#F6FAF6
surface
#ECF3EC
border
#C7CDC7
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #227A38

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

Preview Lab → · Contrast checker → · Palette generator →

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