#227F42#227F42

#227F42 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.127 H 150.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#227F42
RGBrgb(34, 127, 66)
HSLhsl(141, 58%, 32%)
HSVhsv(141, 73%, 50%)
CMYKcmyk(73.2%, 0%, 48%, 50.2%)
CIE-LABlab(46.86, -41.10, 25.53)
CIE-LCHlch(46.86, 48.39, 148.15°)
OKLaboklab(52.8% -0.1106 0.0625)
OKLCHoklch(52.8% 0.127 150.5)
XYZxyz(9.2317, 15.9111, 7.7378)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F42 #7F225F
analogous
#317F22 #227F42 #227F71
triadic
#227F42 #42227F #7F4222
tetradic
#227F42 #22317F #7F225F #7F7122
square
#227F42 #22317F #7F225F #7F7122
split-complementary
#227F42 #71227F #7F2231
monochromatic
#081E10 #154F29 #227F42 #2FAF5B #4CCF79

Accessibility & contrast

On white

5.02
#227F42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#227F42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F42
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F42#FFFFFF#000000##FFFFFF
##227F421.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80743D
Deuteranopia (green-blind)
#746C46
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #227f42;
/* rgb */ color: rgb(34, 127, 66);
/* oklch */ color: oklch(52.8% 0.127 150.5);
Tailwind
colors: {
  custom: {
    50: '#6ba577',
    500: '#227f42',
    950: '#000000',
  },
}
SCSS
$custom: #227f42;
$custom-light: #6ba577;
$custom-dark: #000000;
JSON
{
  "hex": "#227f42",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 66
  },
  "hsl": {
    "h": 140.645,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52798,
    "c": 0.1271,
    "h": 150.5
  },
  "luminance": 0.15912
}

Semantic roles & 50–950 ramp

primary
#227F42
secondary
#B24B8E
accent
#47ACE1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #227F42

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

Preview Lab → · Contrast checker → · Palette generator →

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