#227C2A#227C2A

#227C2A is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.145 H 144.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#227C2A
RGBrgb(34, 124, 42)
HSLhsl(125, 57%, 31%)
HSVhsv(125, 73%, 49%)
CMYKcmyk(72.6%, 0%, 66.1%, 51.4%)
CIE-LABlab(45.53, -43.51, 36.25)
CIE-LCHlch(45.53, 56.63, 140.20°)
OKLaboklab(51.6% -0.1177 0.0844)
OKLCHoklch(51.6% 0.145 144.4)
XYZxyz(8.2847, 14.9216, 4.6336)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227C2A #7C2274
analogous
#477C22 #227C2A #227C57
triadic
#227C2A #2A227C #7C2A22
tetradic
#227C2A #22477C #7C2274 #7C5722
square
#227C2A #22477C #7C2274 #7C5722
split-complementary
#227C2A #57227C #7C2247
monochromatic
#081C09 #154C1A #227C2A #2FAC3A #4BCE56

Accessibility & contrast

On white

5.27
#227C2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#227C2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227C2A
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227C2A#FFFFFF#000000##FFFFFF
##227C2A1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7020
Deuteranopia (green-blind)
#746931
Tritanopia (blue-blind)
#02796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227c2a;
/* rgb */ color: rgb(34, 124, 42);
/* oklch */ color: oklch(51.6% 0.145 144.4);
Tailwind
colors: {
  custom: {
    50: '#6ba367',
    500: '#227c2a',
    950: '#000000',
  },
}
SCSS
$custom: #227c2a;
$custom-light: #6ba367;
$custom-dark: #000000;
JSON
{
  "hex": "#227c2a",
  "rgb": {
    "r": 34,
    "g": 124,
    "b": 42
  },
  "hsl": {
    "h": 125.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51599,
    "c": 0.14486,
    "h": 144.4
  },
  "luminance": 0.14923
}

Semantic roles & 50–950 ramp

primary
#227C2A
secondary
#AF4BA6
accent
#48D3E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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