#227B42#227B42

#227B42 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.7% C 0.121 H 151.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#227B42
RGBrgb(34, 123, 66)
HSLhsl(142, 57%, 31%)
HSVhsv(142, 72%, 48%)
CMYKcmyk(72.4%, 0%, 46.3%, 51.8%)
CIE-LABlab(45.49, -39.51, 23.79)
CIE-LCHlch(45.49, 46.12, 148.95°)
OKLaboklab(51.67% -0.1064 0.0585)
OKLCHoklch(51.67% 0.121 151.2)
XYZxyz(8.7253, 14.8984, 7.5690)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B42 #7B225B
analogous
#2E7B22 #227B42 #227B6E
triadic
#227B42 #42227B #7B4222
tetradic
#227B42 #222E7B #7B225B #7B6E22
square
#227B42 #222E7B #7B225B #7B6E22
split-complementary
#227B42 #6E227B #7B222E
monochromatic
#071B0F #154B28 #227B42 #2FAB5C #4ACD79

Accessibility & contrast

On white

5.28
#227B42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#227B42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227B42
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227B42#FFFFFF#000000##FFFFFF
##227B421.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#716946
Tritanopia (blue-blind)
#00796D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227b42;
/* rgb */ color: rgb(34, 123, 66);
/* oklch */ color: oklch(51.7% 0.121 151.2);
Tailwind
colors: {
  custom: {
    50: '#6aa277',
    500: '#227b42',
    950: '#000000',
  },
}
SCSS
$custom: #227b42;
$custom-light: #6aa277;
$custom-dark: #000000;
JSON
{
  "hex": "#227b42",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 66
  },
  "hsl": {
    "h": 141.573,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51673,
    "c": 0.12146,
    "h": 151.2
  },
  "luminance": 0.14899
}

Semantic roles & 50–950 ramp

primary
#227B42
secondary
#AE4B8A
accent
#48A9E0
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #227B42

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

Preview Lab → · Contrast checker → · Palette generator →

#227B42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva