#228F2F#228F2F

#228F2F is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.0% C 0.165 H 144.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#228F2F
RGBrgb(34, 143, 47)
HSLhsl(127, 62%, 35%)
HSVhsv(127, 76%, 56%)
CMYKcmyk(76.2%, 0%, 67.1%, 43.9%)
CIE-LABlab(52.05, -49.70, 41.19)
CIE-LCHlch(52.05, 64.55, 140.35°)
OKLaboklab(57.02% -0.1343 0.0954)
OKLCHoklch(57.02% 0.165 144.6)
XYZxyz(10.9945, 20.1890, 6.0062)
Luminance0.2019 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F2F #8F2282
analogous
#4C8F22 #228F2F #228F66
triadic
#228F2F #2F228F #8F2F22
tetradic
#228F2F #224C8F #8F2282 #8F6622
square
#228F2F #224C8F #8F2282 #8F6622
split-complementary
#228F2F #66228F #8F224C
monochromatic
#0A2C0E #165E1F #228F2F #2EC03F #55D764

Accessibility & contrast

On white

4.17
#228F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#228F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F2F
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F2F#FFFFFF#000000##000000
##228F2F1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928123
Deuteranopia (green-blind)
#857938
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f2f;
/* rgb */ color: rgb(34, 143, 47);
/* oklch */ color: oklch(57.0% 0.165 144.6);
Tailwind
colors: {
  custom: {
    50: '#70b16c',
    500: '#228f2f',
    950: '#000000',
  },
}
SCSS
$custom: #228f2f;
$custom-light: #70b16c;
$custom-dark: #000000;
JSON
{
  "hex": "#228f2f",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 127.156,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57023,
    "c": 0.16474,
    "h": 144.6
  },
  "luminance": 0.2019
}

Semantic roles & 50–950 ramp

primary
#228F2F
secondary
#BA52AE
accent
#43D1E5
background
#F7FBF6
surface
#EDF6EC
border
#C8D0C7
text
#091107
muted
#7B807A

Preview Lab

Preview with #228F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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