#227A2C#227A2C

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

Color values

HEX#227A2C
RGBrgb(34, 122, 44)
HSLhsl(127, 56%, 31%)
HSVhsv(127, 72%, 48%)
CMYKcmyk(72.1%, 0%, 63.9%, 52.2%)
CIE-LABlab(44.86, -42.53, 34.55)
CIE-LCHlch(44.86, 54.79, 140.91°)
OKLaboklab(51.05% -0.115 0.081)
OKLCHoklch(51.05% 0.141 144.8)
XYZxyz(8.0733, 14.4401, 4.7441)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A2C #7A2270
analogous
#447A22 #227A2C #227A58
triadic
#227A2C #2C227A #7A2C22
tetradic
#227A2C #22447A #7A2270 #7A5822
square
#227A2C #22447A #7A2270 #7A5822
split-complementary
#227A2C #58227A #7A2244
monochromatic
#071A09 #154A1B #227A2C #2FAA3D #4ACD59

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227A2C#FFFFFF#000000##FFFFFF
##227A2C1.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)
#7C6E23
Deuteranopia (green-blind)
#726733
Tritanopia (blue-blind)
#027769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a2c;
/* rgb */ color: rgb(34, 122, 44);
/* oklch */ color: oklch(51.1% 0.141 144.8);
Tailwind
colors: {
  custom: {
    50: '#6ba168',
    500: '#227a2c',
    950: '#000000',
  },
}
SCSS
$custom: #227a2c;
$custom-light: #6ba168;
$custom-dark: #000000;
JSON
{
  "hex": "#227a2c",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 44
  },
  "hsl": {
    "h": 126.818,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51051,
    "c": 0.14063,
    "h": 144.8
  },
  "luminance": 0.14441
}

Semantic roles & 50–950 ramp

primary
#227A2C
secondary
#AD4BA2
accent
#48CEE0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #227A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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