#227D2E#227D2E

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

Color values

HEX#227D2E
RGBrgb(34, 125, 46)
HSLhsl(128, 57%, 31%)
HSVhsv(128, 73%, 49%)
CMYKcmyk(72.8%, 0%, 63.2%, 51%)
CIE-LABlab(45.91, -43.39, 34.78)
CIE-LCHlch(45.91, 55.61, 141.28°)
OKLaboklab(51.93% -0.1172 0.0817)
OKLCHoklch(51.93% 0.143 145.1)
XYZxyz(8.4859, 15.2036, 5.0716)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D2E #7D2271
analogous
#437D22 #227D2E #227D5B
triadic
#227D2E #2E227D #7D2E22
tetradic
#227D2E #22437D #7D2271 #7D5B22
square
#227D2E #22437D #7D2271 #7D5B22
split-complementary
#227D2E #5B227D #7D2243
monochromatic
#081D0B #154D1C #227D2E #2FAD40 #4BCE5D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227D2E#FFFFFF#000000##FFFFFF
##227D2E1.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)
#7F7125
Deuteranopia (green-blind)
#746A35
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227d2e;
/* rgb */ color: rgb(34, 125, 46);
/* oklch */ color: oklch(51.9% 0.143 145.1);
Tailwind
colors: {
  custom: {
    50: '#6ba46a',
    500: '#227d2e',
    950: '#000000',
  },
}
SCSS
$custom: #227d2e;
$custom-light: #6ba46a;
$custom-dark: #000000;
JSON
{
  "hex": "#227d2e",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 127.912,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.51931,
    "c": 0.14287,
    "h": 145.1
  },
  "luminance": 0.15205
}

Semantic roles & 50–950 ramp

primary
#227D2E
secondary
#B04BA2
accent
#47CCE0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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