#228518#228518

#228518 is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.0% C 0.167 H 141.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#228518
RGBrgb(34, 133, 24)
HSLhsl(114, 69%, 31%)
HSVhsv(114, 82%, 52%)
CMYKcmyk(74.4%, 0%, 82%, 47.8%)
CIE-LABlab(48.49, -48.29, 46.43)
CIE-LCHlch(48.49, 66.99, 136.12°)
OKLaboklab(54.01% -0.1316 0.1034)
OKLCHoklch(54.01% 0.167 141.8)
XYZxyz(9.2116, 17.1801, 3.6946)
Luminance0.1718 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228518 #7B1885
analogous
#588518 #228518 #188544
triadic
#228518 #182285 #851822
tetradic
#228518 #185885 #7B1885 #854418
square
#228518 #185885 #7B1885 #854418
split-complementary
#228518 #441885 #851858
monochromatic
#071D05 #15510F #228518 #2FB921 #4ADC3C

Accessibility & contrast

On white

4.73
#228518 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#228518 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228518
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228518#FFFFFF#000000##FFFFFF
##2285181.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#018171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #228518;
/* rgb */ color: rgb(34, 133, 24);
/* oklch */ color: oklch(54.0% 0.167 141.8);
Tailwind
colors: {
  custom: {
    50: '#6eaa5f',
    500: '#228518',
    950: '#000000',
  },
}
SCSS
$custom: #228518;
$custom-light: #6eaa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#228518",
  "rgb": {
    "r": 34,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 114.495,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54011,
    "c": 0.16732,
    "h": 141.8
  },
  "luminance": 0.17181
}

Semantic roles & 50–950 ramp

primary
#228518
secondary
#AE40B9
accent
#3CECDC
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #228518

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

Preview Lab → · Contrast checker → · Palette generator →

#228518 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva