#228F1D#228F1D

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

Color values

HEX#228F1D
RGBrgb(34, 143, 29)
HSLhsl(117, 66%, 34%)
HSVhsv(117, 80%, 56%)
CMYKcmyk(76.2%, 0%, 79.7%, 43.9%)
CIE-LABlab(51.92, -51.30, 48.09)
CIE-LCHlch(51.92, 70.32, 136.85°)
OKLaboklab(56.87% -0.1395 0.1075)
OKLCHoklch(56.87% 0.176 142.4)
XYZxyz(10.7033, 20.0725, 4.4725)
Luminance0.2007 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F1D #8A1D8F
analogous
#5B8F1D #228F1D #1D8F51
triadic
#228F1D #1D228F #8F1D22
tetradic
#228F1D #1D5B8F #8A1D8F #8F511D
square
#228F1D #1D5B8F #8A1D8F #8F511D
split-complementary
#228F1D #511D8F #8F1D5B
monochromatic
#0A2908 #165C13 #228F1D #2EC227 #52DB4C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228F1D#FFFFFF#000000##000000
##228F1D1.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)
#928100
Deuteranopia (green-blind)
#86792A
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f1d;
/* rgb */ color: rgb(34, 143, 29);
/* oklch */ color: oklch(56.9% 0.176 142.4);
Tailwind
colors: {
  custom: {
    50: '#71b163',
    500: '#228f1d',
    950: '#000000',
  },
}
SCSS
$custom: #228f1d;
$custom-light: #71b163;
$custom-dark: #000000;
JSON
{
  "hex": "#228f1d",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 29
  },
  "hsl": {
    "h": 117.368,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56872,
    "c": 0.17614,
    "h": 142.4
  },
  "luminance": 0.20074
}

Semantic roles & 50–950 ramp

primary
#228F1D
secondary
#B84BBD
accent
#3FE9E2
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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