#228018#228018

#228018 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.162 H 141.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#228018
RGBrgb(34, 128, 24)
HSLhsl(114, 68%, 30%)
HSVhsv(114, 81%, 50%)
CMYKcmyk(73.4%, 0%, 81.3%, 49.8%)
CIE-LABlab(46.77, -46.58, 44.80)
CIE-LCHlch(46.77, 64.63, 136.11°)
OKLaboklab(52.59% -0.127 0.1)
OKLCHoklch(52.59% 0.162 141.8)
XYZxyz(8.5432, 15.8434, 3.4718)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228018 #761880
analogous
#568018 #228018 #188042
triadic
#228018 #182280 #801822
tetradic
#228018 #185680 #761880 #804218
square
#228018 #185680 #761880 #804218
split-complementary
#228018 #421880 #801856
monochromatic
#071A05 #144C0E #228018 #30B422 #48DA39

Accessibility & contrast

On white

5.04
#228018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#228018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228018
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228018#FFFFFF#000000##FFFFFF
##2280181.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C24
Tritanopia (blue-blind)
#067C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #228018;
/* rgb */ color: rgb(34, 128, 24);
/* oklch */ color: oklch(52.6% 0.162 141.8);
Tailwind
colors: {
  custom: {
    50: '#6da65e',
    500: '#228018',
    950: '#000000',
  },
}
SCSS
$custom: #228018;
$custom-light: #6da65e;
$custom-dark: #000000;
JSON
{
  "hex": "#228018",
  "rgb": {
    "r": 34,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 114.231,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52585,
    "c": 0.16158,
    "h": 141.8
  },
  "luminance": 0.15844
}

Semantic roles & 50–950 ramp

primary
#228018
secondary
#A940B4
accent
#3DEBDA
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #228018

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

Preview Lab → · Contrast checker → · Palette generator →

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