#228F42#228F42

#228F42 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.149 H 148.5°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#228F42
RGBrgb(34, 143, 66)
HSLhsl(138, 62%, 35%)
HSVhsv(138, 76%, 56%)
CMYKcmyk(76.2%, 0%, 53.8%, 43.9%)
CIE-LABlab(52.26, -47.18, 32.27)
CIE-LCHlch(52.26, 57.16, 145.63°)
OKLaboklab(57.27% -0.1269 0.0777)
OKLCHoklch(57.27% 0.149 148.5)
XYZxyz(11.4646, 20.3770, 8.4821)
Luminance0.2038 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F42 #8F226F
analogous
#388F22 #228F42 #228F79
triadic
#228F42 #42228F #8F4222
tetradic
#228F42 #22388F #8F226F #8F7922
square
#228F42 #22388F #8F226F #8F7922
split-complementary
#228F42 #79228F #8F2238
monochromatic
#0A2C14 #165E2B #228F42 #2EC059 #55D77B

Accessibility & contrast

On white

4.14
#228F42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#228F42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F42
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F42#FFFFFF#000000##000000
##228F421.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#90823B
Deuteranopia (green-blind)
#847948
Tritanopia (blue-blind)
#008C7D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #228f42;
/* rgb */ color: rgb(34, 143, 66);
/* oklch */ color: oklch(57.3% 0.149 148.5);
Tailwind
colors: {
  custom: {
    50: '#6fb178',
    500: '#228f42',
    950: '#000000',
  },
}
SCSS
$custom: #228f42;
$custom-light: #6fb178;
$custom-dark: #000000;
JSON
{
  "hex": "#228f42",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 66
  },
  "hsl": {
    "h": 137.615,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57266,
    "c": 0.14881,
    "h": 148.5
  },
  "luminance": 0.20378
}

Semantic roles & 50–950 ramp

primary
#228F42
secondary
#BA529C
accent
#43B5E5
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#081109
muted
#7B807B

Preview Lab

Preview with #228F42

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

Preview Lab → · Contrast checker → · Palette generator →

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