#228522#228522

#228522 is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.1% C 0.162 H 142.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#228522
RGBrgb(34, 133, 34)
HSLhsl(120, 59%, 33%)
HSVhsv(120, 74%, 52%)
CMYKcmyk(74.4%, 0%, 74.4%, 47.8%)
CIE-LABlab(48.55, -47.53, 42.94)
CIE-LCHlch(48.55, 64.05, 137.91°)
OKLaboklab(54.08% -0.129 0.0975)
OKLCHoklch(54.08% 0.162 142.9)
XYZxyz(9.3354, 17.2296, 4.3467)
Luminance0.1723 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228522 #852285
analogous
#538522 #228522 #228553
triadic
#228522 #222285 #852222
tetradic
#228522 #225385 #852285 #855322
square
#228522 #225385 #852285 #855322
split-complementary
#228522 #532285 #852253
monochromatic
#092409 #165416 #228522 #2EB62E #4FD24F

Accessibility & contrast

On white

4.72
#228522 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#228522 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228522
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228522#FFFFFF#000000##FFFFFF
##2285221.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887811
Deuteranopia (green-blind)
#7D702C
Tritanopia (blue-blind)
#008172
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #228522;
/* rgb */ color: rgb(34, 133, 34);
/* oklch */ color: oklch(54.1% 0.162 142.9);
Tailwind
colors: {
  custom: {
    50: '#6ea964',
    500: '#228522',
    950: '#000000',
  },
}
SCSS
$custom: #228522;
$custom-light: #6ea964;
$custom-dark: #000000;
JSON
{
  "hex": "#228522",
  "rgb": {
    "r": 34,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54082,
    "c": 0.16172,
    "h": 142.9
  },
  "luminance": 0.17231
}

Semantic roles & 50–950 ramp

primary
#228522
secondary
#B64DB6
accent
#45E2E2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #228522

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

Preview Lab → · Contrast checker → · Palette generator →

#228522 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva