#228F27#228F27

#228F27 is a mid, vivid green. Relative luminance 0.201; OKLCH L 56.9% C 0.170 H 143.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#228F27
RGBrgb(34, 143, 39)
HSLhsl(123, 62%, 35%)
HSVhsv(123, 76%, 56%)
CMYKcmyk(76.2%, 0%, 72.7%, 43.9%)
CIE-LABlab(51.98, -50.50, 44.50)
CIE-LCHlch(51.98, 67.31, 138.62°)
OKLaboklab(56.95% -0.1368 0.1014)
OKLCHoklch(56.95% 0.17 143.5)
XYZxyz(10.8477, 20.1302, 5.2329)
Luminance0.2013 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F27 #8F228A
analogous
#548F22 #228F27 #228F5D
triadic
#228F27 #27228F #8F2722
tetradic
#228F27 #22548F #8F228A #8F5D22
square
#228F27 #22548F #8F228A #8F5D22
split-complementary
#228F27 #5D228F #8F2254
monochromatic
#0A2C0C #165E1A #228F27 #2EC034 #55D75B

Accessibility & contrast

On white

4.18
#228F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#228F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F27
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F27#FFFFFF#000000##000000
##228F271.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928116
Deuteranopia (green-blind)
#867931
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f27;
/* rgb */ color: rgb(34, 143, 39);
/* oklch */ color: oklch(56.9% 0.170 143.5);
Tailwind
colors: {
  custom: {
    50: '#70b167',
    500: '#228f27',
    950: '#000000',
  },
}
SCSS
$custom: #228f27;
$custom-light: #70b167;
$custom-dark: #000000;
JSON
{
  "hex": "#228f27",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 122.752,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.56947,
    "c": 0.17033,
    "h": 143.5
  },
  "luminance": 0.20131
}

Semantic roles & 50–950 ramp

primary
#228F27
secondary
#BA52B6
accent
#43DDE5
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228F27

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

Preview Lab → · Contrast checker → · Palette generator →

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