#228F1C#228F1C

#228F1C is a mid, vivid green. Relative luminance 0.201; OKLCH L 56.9% C 0.177 H 142.3°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#228F1C
RGBrgb(34, 143, 28)
HSLhsl(117, 67%, 34%)
HSVhsv(117, 80%, 56%)
CMYKcmyk(76.2%, 0%, 80.4%, 43.9%)
CIE-LABlab(51.91, -51.37, 48.42)
CIE-LCHlch(51.91, 70.59, 136.70°)
OKLaboklab(56.87% -0.1397 0.1081)
OKLCHoklch(56.87% 0.177 142.3)
XYZxyz(10.6911, 20.0676, 4.4084)
Luminance0.2007 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F1C #891C8F
analogous
#5B8F1C #228F1C #1C8F4F
triadic
#228F1C #1C228F #8F1C22
tetradic
#228F1C #1C5B8F #891C8F #8F4F1C
square
#228F1C #1C5B8F #891C8F #8F4F1C
split-complementary
#228F1C #4F1C8F #8F1C5B
monochromatic
#0A2908 #165C12 #228F1C #2EC226 #51DC4A

Accessibility & contrast

On white

4.19
#228F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#228F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F1C
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F1C#FFFFFF#000000##000000
##228F1C1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#86792A
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f1c;
/* rgb */ color: rgb(34, 143, 28);
/* oklch */ color: oklch(56.9% 0.177 142.3);
Tailwind
colors: {
  custom: {
    50: '#71b162',
    500: '#228f1c',
    950: '#000000',
  },
}
SCSS
$custom: #228f1c;
$custom-light: #71b162;
$custom-dark: #000000;
JSON
{
  "hex": "#228f1c",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 28
  },
  "hsl": {
    "h": 116.87,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56866,
    "c": 0.17665,
    "h": 142.3
  },
  "luminance": 0.20069
}

Semantic roles & 50–950 ramp

primary
#228F1C
secondary
#B849BE
accent
#3EEAE1
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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