#228B27#228B27

#228B27 is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.8% C 0.166 H 143.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#228B27
RGBrgb(34, 139, 39)
HSLhsl(123, 61%, 34%)
HSVhsv(123, 76%, 55%)
CMYKcmyk(75.5%, 0%, 71.9%, 45.5%)
CIE-LABlab(50.63, -49.14, 43.09)
CIE-LCHlch(50.63, 65.35, 138.76°)
OKLaboklab(55.82% -0.1331 0.0985)
OKLCHoklch(55.82% 0.166 143.5)
XYZxyz(10.2579, 18.9506, 5.0363)
Luminance0.1895 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228B27 #8B2286
analogous
#528B22 #228B27 #228B5C
triadic
#228B27 #27228B #8B2722
tetradic
#228B27 #22528B #8B2286 #8B5C22
square
#228B27 #22528B #8B2286 #8B5C22
split-complementary
#228B27 #5C228B #8B2252
monochromatic
#0A290B #165A19 #228B27 #2EBC35 #53D559

Accessibility & contrast

On white

4.38
#228B27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#228B27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228B27
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228B27#FFFFFF#000000##000000
##228B271.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D18
Deuteranopia (green-blind)
#827531
Tritanopia (blue-blind)
#008777
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228b27;
/* rgb */ color: rgb(34, 139, 39);
/* oklch */ color: oklch(55.8% 0.166 143.5);
Tailwind
colors: {
  custom: {
    50: '#6fae67',
    500: '#228b27',
    950: '#000000',
  },
}
SCSS
$custom: #228b27;
$custom-light: #6fae67;
$custom-dark: #000000;
JSON
{
  "hex": "#228b27",
  "rgb": {
    "r": 34,
    "g": 139,
    "b": 39
  },
  "hsl": {
    "h": 122.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.55822,
    "c": 0.1656,
    "h": 143.5
  },
  "luminance": 0.18952
}

Semantic roles & 50–950 ramp

primary
#228B27
secondary
#B850B4
accent
#44DCE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #228B27

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

Preview Lab → · Contrast checker → · Palette generator →

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