#227B28#227B28

#227B28 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.3% C 0.145 H 144.0°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#227B28
RGBrgb(34, 123, 40)
HSLhsl(124, 57%, 31%)
HSVhsv(124, 72%, 48%)
CMYKcmyk(72.4%, 0%, 67.5%, 51.8%)
CIE-LABlab(45.16, -43.37, 36.78)
CIE-LCHlch(45.16, 56.87, 139.70°)
OKLaboklab(51.29% -0.1174 0.0853)
OKLCHoklch(51.29% 0.145 144)
XYZxyz(8.1251, 14.6583, 4.4082)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B28 #7B2275
analogous
#487B22 #227B28 #227B54
triadic
#227B28 #28227B #7B2822
tetradic
#227B28 #22487B #7B2275 #7B5422
square
#227B28 #22487B #7B2275 #7B5422
split-complementary
#227B28 #54227B #7B2248
monochromatic
#071B09 #154B18 #227B28 #2FAB38 #4ACD53

Accessibility & contrast

On white

5.34
#227B28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#227B28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227B28
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227B28#FFFFFF#000000##FFFFFF
##227B281.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1E
Deuteranopia (green-blind)
#73682F
Tritanopia (blue-blind)
#04786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227b28;
/* rgb */ color: rgb(34, 123, 40);
/* oklch */ color: oklch(51.3% 0.145 144.0);
Tailwind
colors: {
  custom: {
    50: '#6ba266',
    500: '#227b28',
    950: '#000000',
  },
}
SCSS
$custom: #227b28;
$custom-light: #6ba266;
$custom-dark: #000000;
JSON
{
  "hex": "#227b28",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 40
  },
  "hsl": {
    "h": 124.045,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51291,
    "c": 0.14515,
    "h": 144
  },
  "luminance": 0.14659
}

Semantic roles & 50–950 ramp

primary
#227B28
secondary
#AE4BA7
accent
#48D6E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227B28

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

Preview Lab → · Contrast checker → · Palette generator →

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