#227D28#227D28

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

Color values

HEX#227D28
RGBrgb(34, 125, 40)
HSLhsl(124, 57%, 31%)
HSVhsv(124, 73%, 49%)
CMYKcmyk(72.8%, 0%, 68%, 51%)
CIE-LABlab(45.85, -44.10, 37.54)
CIE-LCHlch(45.85, 57.91, 139.60°)
OKLaboklab(51.86% -0.1194 0.0869)
OKLCHoklch(51.86% 0.148 144)
XYZxyz(8.3758, 15.1596, 4.4918)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D28 #7D2277
analogous
#497D22 #227D28 #227D55
triadic
#227D28 #28227D #7D2822
tetradic
#227D28 #22497D #7D2277 #7D5522
square
#227D28 #22497D #7D2277 #7D5522
split-complementary
#227D28 #55227D #7D2249
monochromatic
#081D09 #154D19 #227D28 #2FAD37 #4BCE54

Accessibility & contrast

On white

5.21
#227D28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#227D28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227D28
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D28#FFFFFF#000000##FFFFFF
##227D281.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711D
Deuteranopia (green-blind)
#756A30
Tritanopia (blue-blind)
#02796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227d28;
/* rgb */ color: rgb(34, 125, 40);
/* oklch */ color: oklch(51.9% 0.148 144.0);
Tailwind
colors: {
  custom: {
    50: '#6ca466',
    500: '#227d28',
    950: '#000000',
  },
}
SCSS
$custom: #227d28;
$custom-light: #6ca466;
$custom-dark: #000000;
JSON
{
  "hex": "#227d28",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 123.956,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.51862,
    "c": 0.1477,
    "h": 144
  },
  "luminance": 0.15161
}

Semantic roles & 50–950 ramp

primary
#227D28
secondary
#B04BA9
accent
#47D6E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227D28

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

Preview Lab → · Contrast checker → · Palette generator →

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