#228C27#228C27

#228C27 is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.1% C 0.167 H 143.5°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#228C27
RGBrgb(34, 140, 39)
HSLhsl(123, 61%, 34%)
HSVhsv(123, 76%, 55%)
CMYKcmyk(75.7%, 0%, 72.1%, 45.1%)
CIE-LABlab(50.97, -49.48, 43.44)
CIE-LCHlch(50.97, 65.85, 138.72°)
OKLaboklab(56.1% -0.1341 0.0992)
OKLCHoklch(56.1% 0.167 143.5)
XYZxyz(10.4033, 19.2415, 5.0848)
Luminance0.1924 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C27 #8C2287
analogous
#528C22 #228C27 #228C5C
triadic
#228C27 #27228C #8C2722
tetradic
#228C27 #22528C #8C2287 #8C5C22
square
#228C27 #22528C #8C2287 #8C5C22
split-complementary
#228C27 #5C228C #8C2252
monochromatic
#0A2A0C #165B19 #228C27 #2EBD35 #53D559

Accessibility & contrast

On white

4.33
#228C27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#228C27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228C27
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228C27#FFFFFF#000000##000000
##228C271.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E17
Deuteranopia (green-blind)
#837631
Tritanopia (blue-blind)
#008878
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228c27;
/* rgb */ color: rgb(34, 140, 39);
/* oklch */ color: oklch(56.1% 0.167 143.5);
Tailwind
colors: {
  custom: {
    50: '#6faf67',
    500: '#228c27',
    950: '#000000',
  },
}
SCSS
$custom: #228c27;
$custom-light: #6faf67;
$custom-dark: #000000;
JSON
{
  "hex": "#228c27",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 39
  },
  "hsl": {
    "h": 122.83,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56104,
    "c": 0.16679,
    "h": 143.5
  },
  "luminance": 0.19243
}

Semantic roles & 50–950 ramp

primary
#228C27
secondary
#B951B4
accent
#44DCE4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #228C27

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

Preview Lab → · Contrast checker → · Palette generator →

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