#227A42#227A42

#227A42 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.120 H 151.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#227A42
RGBrgb(34, 122, 66)
HSLhsl(142, 56%, 31%)
HSVhsv(142, 72%, 48%)
CMYKcmyk(72.1%, 0%, 45.9%, 52.2%)
CIE-LABlab(45.15, -39.11, 23.35)
CIE-LCHlch(45.15, 45.55, 149.16°)
OKLaboklab(51.39% -0.1054 0.0575)
OKLCHoklch(51.39% 0.12 151.4)
XYZxyz(8.6019, 14.6515, 7.5279)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A42 #7A225A
analogous
#2E7A22 #227A42 #227A6E
triadic
#227A42 #42227A #7A4222
tetradic
#227A42 #222E7A #7A225A #7A6E22
square
#227A42 #222E7A #7A225A #7A6E22
split-complementary
#227A42 #6E227A #7A222E
monochromatic
#071A0E #154A28 #227A42 #2FAA5C #4ACD79

Accessibility & contrast

On white

5.34
#227A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#227A42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A42
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A42#FFFFFF#000000##FFFFFF
##227A421.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3E
Deuteranopia (green-blind)
#706846
Tritanopia (blue-blind)
#00786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227a42;
/* rgb */ color: rgb(34, 122, 66);
/* oklch */ color: oklch(51.4% 0.120 151.4);
Tailwind
colors: {
  custom: {
    50: '#6aa177',
    500: '#227a42',
    950: '#000000',
  },
}
SCSS
$custom: #227a42;
$custom-light: #6aa177;
$custom-dark: #000000;
JSON
{
  "hex": "#227a42",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 141.818,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51391,
    "c": 0.12003,
    "h": 151.4
  },
  "luminance": 0.14652
}

Semantic roles & 50–950 ramp

primary
#227A42
secondary
#AD4B89
accent
#48A9E0
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #227A42

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

Preview Lab → · Contrast checker → · Palette generator →

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