#228C18#228C18

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

Color values

HEX#228C18
RGBrgb(34, 140, 24)
HSLhsl(115, 71%, 32%)
HSVhsv(115, 83%, 55%)
CMYKcmyk(75.7%, 0%, 82.9%, 45.1%)
CIE-LABlab(50.88, -50.63, 48.68)
CIE-LCHlch(50.88, 70.24, 136.13°)
OKLaboklab(56% -0.1379 0.1081)
OKLCHoklch(56% 0.175 141.9)
XYZxyz(10.2020, 19.1610, 4.0248)
Luminance0.1916 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C18 #82188C
analogous
#5C8C18 #228C18 #188C48
triadic
#228C18 #18228C #8C1822
tetradic
#228C18 #185C8C #82188C #8C4818
square
#228C18 #185C8C #82188C #8C4818
split-complementary
#228C18 #48188C #8C185C
monochromatic
#092406 #15580F #228C18 #2FC021 #4EDE40

Accessibility & contrast

On white

4.35
#228C18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#228C18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228C18
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228C18#FFFFFF#000000##000000
##228C181.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #228c18;
/* rgb */ color: rgb(34, 140, 24);
/* oklch */ color: oklch(56.0% 0.175 141.9);
Tailwind
colors: {
  custom: {
    50: '#70af60',
    500: '#228c18',
    950: '#000000',
  },
}
SCSS
$custom: #228c18;
$custom-light: #70af60;
$custom-dark: #000000;
JSON
{
  "hex": "#228c18",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 24
  },
  "hsl": {
    "h": 114.828,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.55996,
    "c": 0.1752,
    "h": 141.9
  },
  "luminance": 0.19162
}

Semantic roles & 50–950 ramp

primary
#228C18
secondary
#B441BF
accent
#3AEDDE
background
#F7FAF5
surface
#EDF5EA
border
#C8CFC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #228C18

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

Preview Lab → · Contrast checker → · Palette generator →

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