#227A2A#227A2A

#227A2A is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.142 H 144.4°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#227A2A
RGBrgb(34, 122, 42)
HSLhsl(125, 56%, 31%)
HSVhsv(125, 72%, 48%)
CMYKcmyk(72.1%, 0%, 65.6%, 52.2%)
CIE-LABlab(44.84, -42.77, 35.48)
CIE-LCHlch(44.84, 55.57, 140.32°)
OKLaboklab(51.03% -0.1157 0.0828)
OKLCHoklch(51.03% 0.142 144.4)
XYZxyz(8.0366, 14.4254, 4.5509)
Luminance0.1443 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A2A #7A2272
analogous
#467A22 #227A2A #227A56
triadic
#227A2A #2A227A #7A2A22
tetradic
#227A2A #22467A #7A2272 #7A5622
square
#227A2A #22467A #7A2272 #7A5622
split-complementary
#227A2A #56227A #7A2246
monochromatic
#071A09 #154A1A #227A2A #2FAA3A #4ACD56

Accessibility & contrast

On white

5.41
#227A2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #227A2A
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A2A#FFFFFF#000000##FFFFFF
##227A2A1.005.413.895.41
#FFFFFF5.411.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E21
Deuteranopia (green-blind)
#726731
Tritanopia (blue-blind)
#037769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a2a;
/* rgb */ color: rgb(34, 122, 42);
/* oklch */ color: oklch(51.0% 0.142 144.4);
Tailwind
colors: {
  custom: {
    50: '#6ba167',
    500: '#227a2a',
    950: '#000000',
  },
}
SCSS
$custom: #227a2a;
$custom-light: #6ba167;
$custom-dark: #000000;
JSON
{
  "hex": "#227a2a",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 42
  },
  "hsl": {
    "h": 125.455,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51027,
    "c": 0.14228,
    "h": 144.4
  },
  "luminance": 0.14426
}

Semantic roles & 50–950 ramp

primary
#227A2A
secondary
#AD4BA4
accent
#48D2E0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #227A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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