#228118#228118

#228118 is a mid, vivid green. Relative luminance 0.161; OKLCH L 52.9% C 0.163 H 141.8°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#228118
RGBrgb(34, 129, 24)
HSLhsl(114, 69%, 30%)
HSVhsv(114, 81%, 51%)
CMYKcmyk(73.6%, 0%, 81.4%, 49.4%)
CIE-LABlab(47.11, -46.92, 45.13)
CIE-LCHlch(47.11, 65.10, 136.12°)
OKLaboklab(52.87% -0.1279 0.1006)
OKLCHoklch(52.87% 0.163 141.8)
XYZxyz(8.6743, 16.1056, 3.5155)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228118 #771881
analogous
#568118 #228118 #188143
triadic
#228118 #182281 #811822
tetradic
#228118 #185681 #771881 #814318
square
#228118 #185681 #771881 #814318
split-complementary
#228118 #431881 #811856
monochromatic
#071A05 #144D0E #228118 #30B522 #49DA39

Accessibility & contrast

On white

4.97
#228118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#228118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228118
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228118#FFFFFF#000000##FFFFFF
##2281181.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#796D25
Tritanopia (blue-blind)
#057D6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #228118;
/* rgb */ color: rgb(34, 129, 24);
/* oklch */ color: oklch(52.9% 0.163 141.8);
Tailwind
colors: {
  custom: {
    50: '#6da75e',
    500: '#228118',
    950: '#000000',
  },
}
SCSS
$custom: #228118;
$custom-light: #6da75e;
$custom-dark: #000000;
JSON
{
  "hex": "#228118",
  "rgb": {
    "r": 34,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 114.286,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.52871,
    "c": 0.16274,
    "h": 141.8
  },
  "luminance": 0.16107
}

Semantic roles & 50–950 ramp

primary
#228118
secondary
#AA40B5
accent
#3CEBDB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #228118

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

Preview Lab → · Contrast checker → · Palette generator →

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