#227A28#227A28

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

Color values

HEX#227A28
RGBrgb(34, 122, 40)
HSLhsl(124, 56%, 31%)
HSVhsv(124, 72%, 48%)
CMYKcmyk(72.1%, 0%, 67.2%, 52.2%)
CIE-LABlab(44.82, -43.01, 36.40)
CIE-LCHlch(44.82, 56.34, 139.76°)
OKLaboklab(51.01% -0.1165 0.0845)
OKLCHoklch(51.01% 0.144 144)
XYZxyz(8.0017, 14.4115, 4.3671)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A28 #7A2274
analogous
#487A22 #227A28 #227A54
triadic
#227A28 #28227A #7A2822
tetradic
#227A28 #22487A #7A2274 #7A5422
square
#227A28 #22487A #7A2274 #7A5422
split-complementary
#227A28 #54227A #7A2248
monochromatic
#071A09 #154A18 #227A28 #2FAA38 #4ACD53

Accessibility & contrast

On white

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

On black

3.88
#227A28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##227A28#FFFFFF#000000##FFFFFF
##227A281.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1E
Deuteranopia (green-blind)
#72672F
Tritanopia (blue-blind)
#047769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a28;
/* rgb */ color: rgb(34, 122, 40);
/* oklch */ color: oklch(51.0% 0.144 144.0);
Tailwind
colors: {
  custom: {
    50: '#6ba166',
    500: '#227a28',
    950: '#000000',
  },
}
SCSS
$custom: #227a28;
$custom-light: #6ba166;
$custom-dark: #000000;
JSON
{
  "hex": "#227a28",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 40
  },
  "hsl": {
    "h": 124.091,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51005,
    "c": 0.14387,
    "h": 144
  },
  "luminance": 0.14412
}

Semantic roles & 50–950 ramp

primary
#227A28
secondary
#AD4BA6
accent
#48D5E0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #227A28

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

Preview Lab → · Contrast checker → · Palette generator →

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