#227C42#227C42

#227C42 is a mid, vivid green. Relative luminance 0.151; OKLCH L 52.0% C 0.123 H 151.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#227C42
RGBrgb(34, 124, 66)
HSLhsl(141, 57%, 31%)
HSVhsv(141, 73%, 49%)
CMYKcmyk(72.6%, 0%, 46.8%, 51.4%)
CIE-LABlab(45.84, -39.91, 24.23)
CIE-LCHlch(45.84, 46.69, 148.74°)
OKLaboklab(51.96% -0.1075 0.0595)
OKLCHoklch(51.96% 0.123 151)
XYZxyz(8.8500, 15.1477, 7.6106)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227C42 #7C225C
analogous
#2F7C22 #227C42 #227C6F
triadic
#227C42 #42227C #7C4222
tetradic
#227C42 #222F7C #7C225C #7C6F22
square
#227C42 #222F7C #7C225C #7C6F22
split-complementary
#227C42 #6F227C #7C222F
monochromatic
#081C0F #154C28 #227C42 #2FAC5C #4BCE79

Accessibility & contrast

On white

5.21
#227C42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#227C42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227C42
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227C42#FFFFFF#000000##FFFFFF
##227C421.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D713E
Deuteranopia (green-blind)
#726946
Tritanopia (blue-blind)
#007A6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227c42;
/* rgb */ color: rgb(34, 124, 66);
/* oklch */ color: oklch(52.0% 0.123 151.0);
Tailwind
colors: {
  custom: {
    50: '#6aa377',
    500: '#227c42',
    950: '#000000',
  },
}
SCSS
$custom: #227c42;
$custom-light: #6aa377;
$custom-dark: #000000;
JSON
{
  "hex": "#227c42",
  "rgb": {
    "r": 34,
    "g": 124,
    "b": 66
  },
  "hsl": {
    "h": 141.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51955,
    "c": 0.12287,
    "h": 151
  },
  "luminance": 0.15149
}

Semantic roles & 50–950 ramp

primary
#227C42
secondary
#AF4B8B
accent
#48AAE0
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #227C42

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

Preview Lab → · Contrast checker → · Palette generator →

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