#228A1D#228A1D

#228A1D is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.5% C 0.170 H 142.4°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#228A1D
RGBrgb(34, 138, 29)
HSLhsl(117, 65%, 33%)
HSVhsv(117, 79%, 54%)
CMYKcmyk(75.4%, 0%, 79%, 45.9%)
CIE-LABlab(50.22, -49.64, 46.45)
CIE-LCHlch(50.22, 67.98, 136.90°)
OKLaboklab(55.46% -0.135 0.1041)
OKLCHoklch(55.46% 0.17 142.4)
XYZxyz(9.9693, 18.6046, 4.2278)
Luminance0.1861 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228A1D #851D8A
analogous
#588A1D #228A1D #1D8A4F
triadic
#228A1D #1D228A #8A1D22
tetradic
#228A1D #1D588A #851D8A #8A4F1D
square
#228A1D #1D588A #851D8A #8A4F1D
split-complementary
#228A1D #4F1D8A #8A1D58
monochromatic
#092508 #165712 #228A1D #2EBD28 #4FD949

Accessibility & contrast

On white

4.45
#228A1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#228A1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228A1D
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228A1D#FFFFFF#000000##000000
##228A1D1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C02
Deuteranopia (green-blind)
#827429
Tritanopia (blue-blind)
#008675
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #228a1d;
/* rgb */ color: rgb(34, 138, 29);
/* oklch */ color: oklch(55.5% 0.170 142.4);
Tailwind
colors: {
  custom: {
    50: '#6fad62',
    500: '#228a1d',
    950: '#000000',
  },
}
SCSS
$custom: #228a1d;
$custom-light: #6fad62;
$custom-dark: #000000;
JSON
{
  "hex": "#228a1d",
  "rgb": {
    "r": 34,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 117.248,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.55462,
    "c": 0.17047,
    "h": 142.4
  },
  "luminance": 0.18606
}

Semantic roles & 50–950 ramp

primary
#228A1D
secondary
#B648BB
accent
#40E8E0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #228A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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