#227E28#227E28

#227E28 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.149 H 143.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#227E28
RGBrgb(34, 126, 40)
HSLhsl(124, 58%, 31%)
HSVhsv(124, 73%, 49%)
CMYKcmyk(73%, 0%, 68.3%, 50.6%)
CIE-LABlab(46.20, -44.47, 37.91)
CIE-LCHlch(46.20, 58.43, 139.55°)
OKLaboklab(52.15% -0.1204 0.0877)
OKLCHoklch(52.15% 0.149 143.9)
XYZxyz(8.5030, 15.4141, 4.5342)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E28 #7E2278
analogous
#4A7E22 #227E28 #227E56
triadic
#227E28 #28227E #7E2822
tetradic
#227E28 #224A7E #7E2278 #7E5622
square
#227E28 #224A7E #7E2278 #7E5622
split-complementary
#227E28 #56227E #7E224A
monochromatic
#081E09 #154E19 #227E28 #2FAE37 #4CCF54

Accessibility & contrast

On white

5.14
#227E28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#227E28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227E28
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E28#FFFFFF#000000##FFFFFF
##227E281.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81721D
Deuteranopia (green-blind)
#766B30
Tritanopia (blue-blind)
#017A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227e28;
/* rgb */ color: rgb(34, 126, 40);
/* oklch */ color: oklch(52.1% 0.149 143.9);
Tailwind
colors: {
  custom: {
    50: '#6ca466',
    500: '#227e28',
    950: '#000000',
  },
}
SCSS
$custom: #227e28;
$custom-light: #6ca466;
$custom-dark: #000000;
JSON
{
  "hex": "#227e28",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 123.913,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52147,
    "c": 0.14896,
    "h": 143.9
  },
  "luminance": 0.15415
}

Semantic roles & 50–950 ramp

primary
#227E28
secondary
#B14BAA
accent
#47D7E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227E28

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

Preview Lab → · Contrast checker → · Palette generator →

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