#227A31#227A31

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

Color values

HEX#227A31
RGBrgb(34, 122, 49)
HSLhsl(130, 56%, 31%)
HSVhsv(130, 72%, 48%)
CMYKcmyk(72.1%, 0%, 59.8%, 52.2%)
CIE-LABlab(44.91, -41.87, 32.14)
CIE-LCHlch(44.91, 52.78, 142.49°)
OKLaboklab(51.12% -0.113 0.0762)
OKLCHoklch(51.12% 0.136 146)
XYZxyz(8.1730, 14.4800, 5.2693)
Luminance0.1448 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A31 #7A226B
analogous
#3F7A22 #227A31 #227A5D
triadic
#227A31 #31227A #7A3122
tetradic
#227A31 #223F7A #7A226B #7A5D22
square
#227A31 #223F7A #7A226B #7A5D22
split-complementary
#227A31 #5D227A #7A223F
monochromatic
#071A0B #154A1E #227A31 #2FAA44 #4ACD60

Accessibility & contrast

On white

5.39
#227A31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#227A31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A31
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A31#FFFFFF#000000##FFFFFF
##227A311.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F2A
Deuteranopia (green-blind)
#716737
Tritanopia (blue-blind)
#00776A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a31;
/* rgb */ color: rgb(34, 122, 49);
/* oklch */ color: oklch(51.1% 0.136 146.0);
Tailwind
colors: {
  custom: {
    50: '#6aa16b',
    500: '#227a31',
    950: '#000000',
  },
}
SCSS
$custom: #227a31;
$custom-light: #6aa16b;
$custom-dark: #000000;
JSON
{
  "hex": "#227a31",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 49
  },
  "hsl": {
    "h": 130.227,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51115,
    "c": 0.1363,
    "h": 146
  },
  "luminance": 0.14481
}

Semantic roles & 50–950 ramp

primary
#227A31
secondary
#AD4B9C
accent
#48C6E0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #227A31

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

Preview Lab → · Contrast checker → · Palette generator →

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