#228128#228128

#228128 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.0% C 0.153 H 143.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#228128
RGBrgb(34, 129, 40)
HSLhsl(124, 58%, 32%)
HSVhsv(124, 74%, 51%)
CMYKcmyk(73.6%, 0%, 69%, 49.4%)
CIE-LABlab(47.23, -45.54, 39.03)
CIE-LCHlch(47.23, 59.98, 139.40°)
OKLaboklab(53% -0.1233 0.0901)
OKLCHoklch(53% 0.153 143.9)
XYZxyz(8.8924, 16.1928, 4.6640)
Luminance0.1619 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228128 #81227B
analogous
#4C8122 #228128 #228157
triadic
#228128 #282281 #812822
tetradic
#228128 #224C81 #81227B #815722
square
#228128 #224C81 #81227B #815722
split-complementary
#228128 #572281 #81224C
monochromatic
#08200A #155119 #228128 #2FB137 #4DD056

Accessibility & contrast

On white

4.95
#228128 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#228128 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228128
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228128#FFFFFF#000000##FFFFFF
##2281281.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84751C
Deuteranopia (green-blind)
#796D30
Tritanopia (blue-blind)
#007D6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #228128;
/* rgb */ color: rgb(34, 129, 40);
/* oklch */ color: oklch(53.0% 0.153 143.9);
Tailwind
colors: {
  custom: {
    50: '#6da766',
    500: '#228128',
    950: '#000000',
  },
}
SCSS
$custom: #228128;
$custom-light: #6da766;
$custom-dark: #000000;
JSON
{
  "hex": "#228128",
  "rgb": {
    "r": 34,
    "g": 129,
    "b": 40
  },
  "hsl": {
    "h": 123.789,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53001,
    "c": 0.15272,
    "h": 143.9
  },
  "luminance": 0.16194
}

Semantic roles & 50–950 ramp

primary
#228128
secondary
#B34BAD
accent
#46D8E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #228128

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

Preview Lab → · Contrast checker → · Palette generator →

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