#228540#228540

#228540 is a mid, vivid green. Relative luminance 0.175; OKLCH L 54.4% C 0.137 H 149.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#228540
RGBrgb(34, 133, 64)
HSLhsl(138, 59%, 33%)
HSVhsv(138, 74%, 52%)
CMYKcmyk(74.4%, 0%, 51.9%, 47.8%)
CIE-LABlab(48.86, -43.77, 29.13)
CIE-LCHlch(48.86, 52.58, 146.35°)
OKLaboklab(54.45% -0.1178 0.0706)
OKLCHoklch(54.45% 0.137 149.1)
XYZxyz(9.9718, 17.4842, 7.6987)
Luminance0.1749 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228540 #852267
analogous
#358522 #228540 #228571
triadic
#228540 #402285 #854022
tetradic
#228540 #223585 #852267 #857122
square
#228540 #223585 #852267 #857122
split-complementary
#228540 #712285 #852235
monochromatic
#092411 #165429 #228540 #2EB657 #4FD277

Accessibility & contrast

On white

4.67
#228540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#228540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #228540
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228540#FFFFFF#000000##FFFFFF
##2285401.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86793A
Deuteranopia (green-blind)
#7A7145
Tritanopia (blue-blind)
#008275
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #228540;
/* rgb */ color: rgb(34, 133, 64);
/* oklch */ color: oklch(54.4% 0.137 149.1);
Tailwind
colors: {
  custom: {
    50: '#6ca976',
    500: '#228540',
    950: '#000000',
  },
}
SCSS
$custom: #228540;
$custom-light: #6ca976;
$custom-dark: #000000;
JSON
{
  "hex": "#228540",
  "rgb": {
    "r": 34,
    "g": 133,
    "b": 64
  },
  "hsl": {
    "h": 138.182,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54447,
    "c": 0.1373,
    "h": 149.1
  },
  "luminance": 0.17485
}

Semantic roles & 50–950 ramp

primary
#228540
secondary
#B64D96
accent
#45B3E2
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #228540

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

Preview Lab → · Contrast checker → · Palette generator →

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