#228342#228342

#228342 is a mid, vivid green. Relative luminance 0.170; OKLCH L 53.9% C 0.133 H 149.9°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#228342
RGBrgb(34, 131, 66)
HSLhsl(140, 59%, 32%)
HSVhsv(140, 74%, 51%)
CMYKcmyk(74%, 0%, 49.6%, 48.6%)
CIE-LABlab(48.22, -42.66, 27.25)
CIE-LCHlch(48.22, 50.63, 147.43°)
OKLaboklab(53.92% -0.1148 0.0665)
OKLCHoklch(53.92% 0.133 149.9)
XYZxyz(9.7586, 16.9649, 7.9135)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228342 #832263
analogous
#328322 #228342 #228373
triadic
#228342 #422283 #834222
tetradic
#228342 #223283 #832263 #837322
square
#228342 #223283 #832263 #837322
split-complementary
#228342 #732283 #832232
monochromatic
#092211 #15522A #228342 #2FB45A #4ED179

Accessibility & contrast

On white

4.78
#228342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#228342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228342
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228342#FFFFFF#000000##FFFFFF
##2283421.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84773D
Deuteranopia (green-blind)
#786F47
Tritanopia (blue-blind)
#008174
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #228342;
/* rgb */ color: rgb(34, 131, 66);
/* oklch */ color: oklch(53.9% 0.133 149.9);
Tailwind
colors: {
  custom: {
    50: '#6ca877',
    500: '#228342',
    950: '#000000',
  },
}
SCSS
$custom: #228342;
$custom-light: #6ca877;
$custom-dark: #000000;
JSON
{
  "hex": "#228342",
  "rgb": {
    "r": 34,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 139.794,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5392,
    "c": 0.13265,
    "h": 149.9
  },
  "luminance": 0.16966
}

Semantic roles & 50–950 ramp

primary
#228342
secondary
#B44C92
accent
#46AEE2
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#081009
muted
#7A7F7B

Preview Lab

Preview with #228342

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

Preview Lab → · Contrast checker → · Palette generator →

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