#228C42#228C42

#228C42 is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.4% C 0.145 H 148.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#228C42
RGBrgb(34, 140, 66)
HSLhsl(138, 61%, 34%)
HSVhsv(138, 76%, 55%)
CMYKcmyk(75.7%, 0%, 52.9%, 45.1%)
CIE-LABlab(51.25, -46.07, 31.04)
CIE-LCHlch(51.25, 55.55, 146.03°)
OKLaboklab(56.43% -0.1239 0.075)
OKLCHoklch(56.43% 0.145 148.8)
XYZxyz(11.0203, 19.4883, 8.3340)
Luminance0.1949 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C42 #8C226C
analogous
#378C22 #228C42 #228C77
triadic
#228C42 #42228C #8C4222
tetradic
#228C42 #22378C #8C226C #8C7722
square
#228C42 #22378C #8C226C #8C7722
split-complementary
#228C42 #77228C #8C2237
monochromatic
#0A2A14 #165B2B #228C42 #2EBD59 #53D57A

Accessibility & contrast

On white

4.29
#228C42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#228C42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228C42
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228C42#FFFFFF#000000##000000
##228C421.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7F3C
Deuteranopia (green-blind)
#817747
Tritanopia (blue-blind)
#00897B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228c42;
/* rgb */ color: rgb(34, 140, 66);
/* oklch */ color: oklch(56.4% 0.145 148.8);
Tailwind
colors: {
  custom: {
    50: '#6eaf78',
    500: '#228c42',
    950: '#000000',
  },
}
SCSS
$custom: #228c42;
$custom-light: #6eaf78;
$custom-dark: #000000;
JSON
{
  "hex": "#228c42",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 66
  },
  "hsl": {
    "h": 138.113,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56432,
    "c": 0.14484,
    "h": 148.8
  },
  "luminance": 0.1949
}

Semantic roles & 50–950 ramp

primary
#228C42
secondary
#B9519A
accent
#44B4E4
background
#F7FAF7
surface
#EDF5ED
border
#C8CFC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #228C42

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

Preview Lab → · Contrast checker → · Palette generator →

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