#228D1C#228D1C

#228D1C is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.3% C 0.174 H 142.3°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#228D1C
RGBrgb(34, 141, 28)
HSLhsl(117, 67%, 33%)
HSVhsv(117, 80%, 55%)
CMYKcmyk(75.9%, 0%, 80.1%, 44.7%)
CIE-LABlab(51.24, -50.71, 47.77)
CIE-LCHlch(51.24, 69.66, 136.71°)
OKLaboklab(56.3% -0.1379 0.1067)
OKLCHoklch(56.3% 0.174 142.3)
XYZxyz(10.3935, 19.4725, 4.3092)
Luminance0.1947 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228D1C #871C8D
analogous
#5A8D1C #228D1C #1C8D4E
triadic
#228D1C #1C228D #8D1C22
tetradic
#228D1C #1C5A8D #871C8D #8D4E1C
square
#228D1C #1C5A8D #871C8D #8D4E1C
split-complementary
#228D1C #4E1C8D #8D1C5A
monochromatic
#092708 #165A12 #228D1C #2EC026 #50DB49

Accessibility & contrast

On white

4.29
#228D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#228D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228D1C
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228D1C#FFFFFF#000000##000000
##228D1C1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#847729
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228d1c;
/* rgb */ color: rgb(34, 141, 28);
/* oklch */ color: oklch(56.3% 0.174 142.3);
Tailwind
colors: {
  custom: {
    50: '#70af62',
    500: '#228d1c',
    950: '#000000',
  },
}
SCSS
$custom: #228d1c;
$custom-light: #70af62;
$custom-dark: #000000;
JSON
{
  "hex": "#228d1c",
  "rgb": {
    "r": 34,
    "g": 141,
    "b": 28
  },
  "hsl": {
    "h": 116.814,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56302,
    "c": 0.1744,
    "h": 142.3
  },
  "luminance": 0.19474
}

Semantic roles & 50–950 ramp

primary
#228D1C
secondary
#B748BD
accent
#3EEAE1
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #228D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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