#228A2F#228A2F

#228A2F is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.6% C 0.159 H 144.8°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#228A2F
RGBrgb(34, 138, 47)
HSLhsl(128, 60%, 34%)
HSVhsv(128, 75%, 54%)
CMYKcmyk(75.4%, 0%, 65.9%, 45.9%)
CIE-LABlab(50.36, -47.96, 39.33)
CIE-LCHlch(50.36, 62.02, 140.65°)
OKLaboklab(55.62% -0.1296 0.0915)
OKLCHoklch(55.62% 0.159 144.8)
XYZxyz(10.2606, 18.7211, 5.7616)
Luminance0.1872 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228A2F #8A227D
analogous
#498A22 #228A2F #228A63
triadic
#228A2F #2F228A #8A2F22
tetradic
#228A2F #22498A #8A227D #8A6322
square
#228A2F #22498A #8A227D #8A6322
split-complementary
#228A2F #63228A #8A2249
monochromatic
#0A280E #16591E #228A2F #2EBB40 #52D462

Accessibility & contrast

On white

4.43
#228A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#228A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228A2F
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228A2F#FFFFFF#000000##000000
##228A2F1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7D24
Deuteranopia (green-blind)
#817537
Tritanopia (blue-blind)
#008677
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #228a2f;
/* rgb */ color: rgb(34, 138, 47);
/* oklch */ color: oklch(55.6% 0.159 144.8);
Tailwind
colors: {
  custom: {
    50: '#6ead6c',
    500: '#228a2f',
    950: '#000000',
  },
}
SCSS
$custom: #228a2f;
$custom-light: #6ead6c;
$custom-dark: #000000;
JSON
{
  "hex": "#228a2f",
  "rgb": {
    "r": 34,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 127.5,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5562,
    "c": 0.1586,
    "h": 144.8
  },
  "luminance": 0.18722
}

Semantic roles & 50–950 ramp

primary
#228A2F
secondary
#B850AB
accent
#44D0E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #228A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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