#228F18#228F18

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

Color values

HEX#228F18
RGBrgb(34, 143, 24)
HSLhsl(115, 71%, 33%)
HSVhsv(115, 83%, 56%)
CMYKcmyk(76.2%, 0%, 83.2%, 43.9%)
CIE-LABlab(51.89, -51.62, 49.63)
CIE-LCHlch(51.89, 71.61, 136.13°)
OKLaboklab(56.84% -0.1406 0.11)
OKLCHoklch(56.84% 0.179 142)
XYZxyz(10.6464, 20.0497, 4.1729)
Luminance0.2005 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F18 #85188F
analogous
#5D8F18 #228F18 #188F49
triadic
#228F18 #18228F #8F1822
tetradic
#228F18 #185D8F #85188F #8F4918
square
#228F18 #185D8F #85188F #8F4918
split-complementary
#228F18 #49188F #8F185D
monochromatic
#092606 #165B0F #228F18 #2EC321 #4FDF42

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228F18#FFFFFF#000000##000000
##228F181.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)
#938100
Deuteranopia (green-blind)
#867927
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f18;
/* rgb */ color: rgb(34, 143, 24);
/* oklch */ color: oklch(56.8% 0.179 142.0);
Tailwind
colors: {
  custom: {
    50: '#71b160',
    500: '#228f18',
    950: '#000000',
  },
}
SCSS
$custom: #228f18;
$custom-light: #71b160;
$custom-dark: #000000;
JSON
{
  "hex": "#228f18",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 114.958,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56843,
    "c": 0.17852,
    "h": 142
  },
  "luminance": 0.20051
}

Semantic roles & 50–950 ramp

primary
#228F18
secondary
#B643C0
accent
#3AEEDF
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091105
muted
#7B807A

Preview Lab

Preview with #228F18

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

Preview Lab → · Contrast checker → · Palette generator →

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