#228E27#228E27

#228E27 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.169 H 143.5°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#228E27
RGBrgb(34, 142, 39)
HSLhsl(123, 61%, 35%)
HSVhsv(123, 76%, 56%)
CMYKcmyk(76.1%, 0%, 72.5%, 44.3%)
CIE-LABlab(51.65, -50.16, 44.15)
CIE-LCHlch(51.65, 66.82, 138.65°)
OKLaboklab(56.67% -0.1359 0.1007)
OKLCHoklch(56.67% 0.169 143.5)
XYZxyz(10.6982, 19.8313, 5.1831)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E27 #8E2289
analogous
#538E22 #228E27 #228E5D
triadic
#228E27 #27228E #8E2722
tetradic
#228E27 #22538E #8E2289 #8E5D22
square
#228E27 #22538E #8E2289 #8E5D22
split-complementary
#228E27 #5D228E #8E2253
monochromatic
#0A2B0C #165D19 #228E27 #2EBF35 #54D65A

Accessibility & contrast

On white

4.23
#228E27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#228E27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228E27
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228E27#FFFFFF#000000##000000
##228E271.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918016
Deuteranopia (green-blind)
#857831
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e27;
/* rgb */ color: rgb(34, 142, 39);
/* oklch */ color: oklch(56.7% 0.169 143.5);
Tailwind
colors: {
  custom: {
    50: '#70b067',
    500: '#228e27',
    950: '#000000',
  },
}
SCSS
$custom: #228e27;
$custom-light: #70b067;
$custom-dark: #000000;
JSON
{
  "hex": "#228e27",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 39
  },
  "hsl": {
    "h": 122.778,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56666,
    "c": 0.16916,
    "h": 143.5
  },
  "luminance": 0.19833
}

Semantic roles & 50–950 ramp

primary
#228E27
secondary
#BA52B5
accent
#43DDE4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228E27

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

Preview Lab → · Contrast checker → · Palette generator →

#228E27 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva