#228D27#228D27

#228D27 is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.4% C 0.168 H 143.5°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#228D27
RGBrgb(34, 141, 39)
HSLhsl(123, 61%, 34%)
HSVhsv(123, 76%, 55%)
CMYKcmyk(75.9%, 0%, 72.3%, 44.7%)
CIE-LABlab(51.31, -49.82, 43.79)
CIE-LCHlch(51.31, 66.34, 138.69°)
OKLaboklab(56.39% -0.135 0.0999)
OKLCHoklch(56.39% 0.168 143.5)
XYZxyz(10.5501, 19.5351, 5.1337)
Luminance0.1954 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228D27 #8D2288
analogous
#538D22 #228D27 #228D5D
triadic
#228D27 #27228D #8D2722
tetradic
#228D27 #22538D #8D2288 #8D5D22
square
#228D27 #22538D #8D2288 #8D5D22
split-complementary
#228D27 #5D228D #8D2253
monochromatic
#0A2A0C #165C19 #228D27 #2EBE35 #54D65A

Accessibility & contrast

On white

4.28
#228D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#228D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228D27
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228D27#FFFFFF#000000##000000
##228D271.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F17
Deuteranopia (green-blind)
#847731
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228d27;
/* rgb */ color: rgb(34, 141, 39);
/* oklch */ color: oklch(56.4% 0.168 143.5);
Tailwind
colors: {
  custom: {
    50: '#70af67',
    500: '#228d27',
    950: '#000000',
  },
}
SCSS
$custom: #228d27;
$custom-light: #70af67;
$custom-dark: #000000;
JSON
{
  "hex": "#228d27",
  "rgb": {
    "r": 34,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 122.804,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56385,
    "c": 0.16798,
    "h": 143.5
  },
  "luminance": 0.19536
}

Semantic roles & 50–950 ramp

primary
#228D27
secondary
#B951B5
accent
#44DDE4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #228D27

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

Preview Lab → · Contrast checker → · Palette generator →

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