#228D2C#228D2C

#228D2C is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.4% C 0.165 H 144.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#228D2C
RGBrgb(34, 141, 44)
HSLhsl(126, 61%, 34%)
HSVhsv(126, 76%, 55%)
CMYKcmyk(75.9%, 0%, 68.8%, 44.7%)
CIE-LABlab(51.35, -49.33, 41.74)
CIE-LCHlch(51.35, 64.62, 139.76°)
OKLaboklab(56.43% -0.1334 0.0963)
OKLCHoklch(56.43% 0.165 144.2)
XYZxyz(10.6385, 19.5705, 5.5992)
Luminance0.1957 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228D2C #8D2283
analogous
#4E8D22 #228D2C #228D61
triadic
#228D2C #2C228D #8D2C22
tetradic
#228D2C #224E8D #8D2283 #8D6122
square
#228D2C #224E8D #8D2283 #8D6122
split-complementary
#228D2C #61228D #8D224E
monochromatic
#0A2A0D #165C1D #228D2C #2EBE3B #54D660

Accessibility & contrast

On white

4.27
#228D2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#228D2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228D2C
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228D2C#FFFFFF#000000##000000
##228D2C1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F1F
Deuteranopia (green-blind)
#847735
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228d2c;
/* rgb */ color: rgb(34, 141, 44);
/* oklch */ color: oklch(56.4% 0.165 144.2);
Tailwind
colors: {
  custom: {
    50: '#6faf6a',
    500: '#228d2c',
    950: '#000000',
  },
}
SCSS
$custom: #228d2c;
$custom-light: #6faf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#228d2c",
  "rgb": {
    "r": 34,
    "g": 141,
    "b": 44
  },
  "hsl": {
    "h": 125.607,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56432,
    "c": 0.16452,
    "h": 144.2
  },
  "luminance": 0.19572
}

Semantic roles & 50–950 ramp

primary
#228D2C
secondary
#B951B0
accent
#44D5E4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #228D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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