#228828#228828

#228828 is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.0% C 0.161 H 143.7°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#228828
RGBrgb(34, 136, 40)
HSLhsl(124, 60%, 33%)
HSVhsv(124, 75%, 53%)
CMYKcmyk(75%, 0%, 70.6%, 46.7%)
CIE-LABlab(49.62, -48.01, 41.60)
CIE-LCHlch(49.62, 63.53, 139.09°)
OKLaboklab(54.98% -0.13 0.0955)
OKLCHoklch(54.98% 0.161 143.7)
XYZxyz(9.8462, 18.1005, 4.9819)
Luminance0.1810 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228828 #882282
analogous
#4F8822 #228828 #22885B
triadic
#228828 #282288 #882822
tetradic
#228828 #224F88 #882282 #885B22
square
#228828 #224F88 #882282 #885B22
split-complementary
#228828 #5B2288 #88224F
monochromatic
#0A260B #16571A #228828 #2EB936 #51D359

Accessibility & contrast

On white

4.55
#228828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#228828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228828
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228828#FFFFFF#000000##000000
##2288281.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1A
Deuteranopia (green-blind)
#7F7331
Tritanopia (blue-blind)
#008475
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #228828;
/* rgb */ color: rgb(34, 136, 40);
/* oklch */ color: oklch(55.0% 0.161 143.7);
Tailwind
colors: {
  custom: {
    50: '#6eac67',
    500: '#228828',
    950: '#000000',
  },
}
SCSS
$custom: #228828;
$custom-light: #6eac67;
$custom-dark: #000000;
JSON
{
  "hex": "#228828",
  "rgb": {
    "r": 34,
    "g": 136,
    "b": 40
  },
  "hsl": {
    "h": 123.529,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.54985,
    "c": 0.16131,
    "h": 143.7
  },
  "luminance": 0.18102
}

Semantic roles & 50–950 ramp

primary
#228828
secondary
#B74FB1
accent
#45DAE3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #228828

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

Preview Lab → · Contrast checker → · Palette generator →

#228828 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva