#228542#228542

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

Color values

HEX#228542
RGBrgb(34, 133, 66)
HSLhsl(139, 59%, 33%)
HSVhsv(139, 74%, 52%)
CMYKcmyk(74.4%, 0%, 50.4%, 47.8%)
CIE-LABlab(48.89, -43.43, 28.10)
CIE-LCHlch(48.89, 51.73, 147.10°)
OKLaboklab(54.48% -0.1169 0.0684)
OKLCHoklch(54.48% 0.135 149.7)
XYZxyz(10.0298, 17.5073, 8.0039)
Luminance0.1751 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228542 #852265
analogous
#338522 #228542 #228573
triadic
#228542 #422285 #854222
tetradic
#228542 #223385 #852265 #857322
square
#228542 #223385 #852265 #857322
split-complementary
#228542 #732285 #852233
monochromatic
#092412 #16542A #228542 #2EB65A #4FD27A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228542#FFFFFF#000000##FFFFFF
##2285421.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)
#86793D
Deuteranopia (green-blind)
#7A7147
Tritanopia (blue-blind)
#008375
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #228542;
/* rgb */ color: rgb(34, 133, 66);
/* oklch */ color: oklch(54.5% 0.135 149.7);
Tailwind
colors: {
  custom: {
    50: '#6ca977',
    500: '#228542',
    950: '#000000',
  },
}
SCSS
$custom: #228542;
$custom-light: #6ca977;
$custom-dark: #000000;
JSON
{
  "hex": "#228542",
  "rgb": {
    "r": 34,
    "g": 133,
    "b": 66
  },
  "hsl": {
    "h": 139.394,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5448,
    "c": 0.1354,
    "h": 149.7
  },
  "luminance": 0.17508
}

Semantic roles & 50–950 ramp

primary
#228542
secondary
#B64D94
accent
#45B0E2
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #228542

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

Preview Lab → · Contrast checker → · Palette generator →

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