#227C2F#227C2F

#227C2F is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.141 H 145.4°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#227C2F
RGBrgb(34, 124, 47)
HSLhsl(129, 57%, 31%)
HSVhsv(129, 73%, 49%)
CMYKcmyk(72.6%, 0%, 62.1%, 51.4%)
CIE-LABlab(45.58, -42.89, 33.91)
CIE-LCHlch(45.58, 54.68, 141.67°)
OKLaboklab(51.66% -0.1158 0.0799)
OKLCHoklch(51.66% 0.141 145.4)
XYZxyz(8.3799, 14.9597, 5.1347)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227C2F #7C226F
analogous
#427C22 #227C2F #227C5C
triadic
#227C2F #2F227C #7C2F22
tetradic
#227C2F #22427C #7C226F #7C5C22
square
#227C2F #22427C #7C226F #7C5C22
split-complementary
#227C2F #5C227C #7C2242
monochromatic
#081C0B #154C1D #227C2F #2FAC41 #4BCE5E

Accessibility & contrast

On white

5.26
#227C2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#227C2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227C2F
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227C2F#FFFFFF#000000##FFFFFF
##227C2F1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7027
Deuteranopia (green-blind)
#736935
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227c2f;
/* rgb */ color: rgb(34, 124, 47);
/* oklch */ color: oklch(51.7% 0.141 145.4);
Tailwind
colors: {
  custom: {
    50: '#6ba36a',
    500: '#227c2f',
    950: '#000000',
  },
}
SCSS
$custom: #227c2f;
$custom-light: #6ba36a;
$custom-dark: #000000;
JSON
{
  "hex": "#227c2f",
  "rgb": {
    "r": 34,
    "g": 124,
    "b": 47
  },
  "hsl": {
    "h": 128.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51659,
    "c": 0.14071,
    "h": 145.4
  },
  "luminance": 0.14961
}

Semantic roles & 50–950 ramp

primary
#227C2F
secondary
#AF4BA0
accent
#48CAE0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #227C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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