#227D2C#227D2C

#227D2C is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.145 H 144.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#227D2C
RGBrgb(34, 125, 44)
HSLhsl(127, 57%, 31%)
HSVhsv(127, 73%, 49%)
CMYKcmyk(72.8%, 0%, 64.8%, 51%)
CIE-LABlab(45.89, -43.64, 35.72)
CIE-LCHlch(45.89, 56.39, 140.70°)
OKLaboklab(51.91% -0.118 0.0835)
OKLCHoklch(51.91% 0.145 144.7)
XYZxyz(8.4474, 15.1882, 4.8688)
Luminance0.1519 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D2C #7D2273
analogous
#457D22 #227D2C #227D59
triadic
#227D2C #2C227D #7D2C22
tetradic
#227D2C #22457D #7D2273 #7D5922
square
#227D2C #22457D #7D2273 #7D5922
split-complementary
#227D2C #59227D #7D2245
monochromatic
#081D0A #154D1B #227D2C #2FAD3D #4BCE5A

Accessibility & contrast

On white

5.20
#227D2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#227D2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227D2C
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D2C#FFFFFF#000000##FFFFFF
##227D2C1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7123
Deuteranopia (green-blind)
#756A33
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227d2c;
/* rgb */ color: rgb(34, 125, 44);
/* oklch */ color: oklch(51.9% 0.145 144.7);
Tailwind
colors: {
  custom: {
    50: '#6ba468',
    500: '#227d2c',
    950: '#000000',
  },
}
SCSS
$custom: #227d2c;
$custom-light: #6ba468;
$custom-dark: #000000;
JSON
{
  "hex": "#227d2c",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 44
  },
  "hsl": {
    "h": 126.593,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.51907,
    "c": 0.14454,
    "h": 144.7
  },
  "luminance": 0.15189
}

Semantic roles & 50–950 ramp

primary
#227D2C
secondary
#B04BA5
accent
#47D0E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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