#227A2D#227A2D

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

Color values

HEX#227A2D
RGBrgb(34, 122, 45)
HSLhsl(128, 56%, 31%)
HSVhsv(128, 72%, 48%)
CMYKcmyk(72.1%, 0%, 63.1%, 52.2%)
CIE-LABlab(44.87, -42.40, 34.08)
CIE-LCHlch(44.87, 54.40, 141.21°)
OKLaboklab(51.06% -0.1146 0.0801)
OKLCHoklch(51.06% 0.14 145.1)
XYZxyz(8.0923, 14.4477, 4.8443)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A2D #7A226F
analogous
#437A22 #227A2D #227A59
triadic
#227A2D #2D227A #7A2D22
tetradic
#227A2D #22437A #7A226F #7A5922
square
#227A2D #22437A #7A226F #7A5922
split-complementary
#227A2D #59227A #7A2243
monochromatic
#071A0A #154A1B #227A2D #2FAA3F #4ACD5A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #227a2d;
/* rgb */ color: rgb(34, 122, 45);
/* oklch */ color: oklch(51.1% 0.140 145.1);
Tailwind
colors: {
  custom: {
    50: '#6ba169',
    500: '#227a2d',
    950: '#000000',
  },
}
SCSS
$custom: #227a2d;
$custom-light: #6ba169;
$custom-dark: #000000;
JSON
{
  "hex": "#227a2d",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 45
  },
  "hsl": {
    "h": 127.5,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51063,
    "c": 0.13978,
    "h": 145.1
  },
  "luminance": 0.14449
}

Semantic roles & 50–950 ramp

primary
#227A2D
secondary
#AD4BA1
accent
#48CDE0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #227A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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