#228F2A#228F2A

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

Color values

HEX#228F2A
RGBrgb(34, 143, 42)
HSLhsl(124, 62%, 35%)
HSVhsv(124, 76%, 56%)
CMYKcmyk(76.2%, 0%, 70.6%, 43.9%)
CIE-LABlab(52.01, -50.22, 43.30)
CIE-LCHlch(52.01, 66.31, 139.23°)
OKLaboklab(56.97% -0.1359 0.0993)
OKLCHoklch(56.97% 0.168 143.9)
XYZxyz(10.8994, 20.1509, 5.5051)
Luminance0.2015 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F2A #8F2287
analogous
#508F22 #228F2A #228F61
triadic
#228F2A #2A228F #8F2A22
tetradic
#228F2A #22508F #8F2287 #8F6122
square
#228F2A #22508F #8F2287 #8F6122
split-complementary
#228F2A #61228F #8F2250
monochromatic
#0A2C0D #165E1B #228F2A #2EC039 #55D75E

Accessibility & contrast

On white

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

On black

5.03
#228F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F2A
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F2A#FFFFFF#000000##000000
##228F2A1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#92811B
Deuteranopia (green-blind)
#867934
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f2a;
/* rgb */ color: rgb(34, 143, 42);
/* oklch */ color: oklch(57.0% 0.168 143.9);
Tailwind
colors: {
  custom: {
    50: '#70b169',
    500: '#228f2a',
    950: '#000000',
  },
}
SCSS
$custom: #228f2a;
$custom-light: #70b169;
$custom-dark: #000000;
JSON
{
  "hex": "#228f2a",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 124.404,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.56974,
    "c": 0.16833,
    "h": 143.9
  },
  "luminance": 0.20152
}

Semantic roles & 50–950 ramp

primary
#228F2A
secondary
#BA52B3
accent
#43D9E5
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #228F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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