#228C1C#228C1C

#228C1C is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.0% C 0.173 H 142.3°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#228C1C
RGBrgb(34, 140, 28)
HSLhsl(117, 67%, 33%)
HSVhsv(117, 80%, 55%)
CMYKcmyk(75.7%, 0%, 80%, 45.1%)
CIE-LABlab(50.90, -50.38, 47.44)
CIE-LCHlch(50.90, 69.20, 136.72°)
OKLaboklab(56.02% -0.137 0.106)
OKLCHoklch(56.02% 0.173 142.3)
XYZxyz(10.2468, 19.1789, 4.2603)
Luminance0.1918 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C1C #861C8C
analogous
#5A8C1C #228C1C #1C8C4E
triadic
#228C1C #1C228C #8C1C22
tetradic
#228C1C #1C5A8C #861C8C #8C4E1C
square
#228C1C #1C5A8C #861C8C #8C4E1C
split-complementary
#228C1C #4E1C8C #8C1C5A
monochromatic
#092608 #165912 #228C1C #2EBF26 #50DA48

Accessibility & contrast

On white

4.34
#228C1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#228C1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228C1C
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228C1C#FFFFFF#000000##000000
##228C1C1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#847629
Tritanopia (blue-blind)
#008877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228c1c;
/* rgb */ color: rgb(34, 140, 28);
/* oklch */ color: oklch(56.0% 0.173 142.3);
Tailwind
colors: {
  custom: {
    50: '#70af62',
    500: '#228c1c',
    950: '#000000',
  },
}
SCSS
$custom: #228c1c;
$custom-light: #70af62;
$custom-dark: #000000;
JSON
{
  "hex": "#228c1c",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 28
  },
  "hsl": {
    "h": 116.786,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5602,
    "c": 0.17328,
    "h": 142.3
  },
  "luminance": 0.1918
}

Semantic roles & 50–950 ramp

primary
#228C1C
secondary
#B648BC
accent
#3EEAE0
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #228C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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