#227F38#227F38

#227F38 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.137 H 147.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#227F38
RGBrgb(34, 127, 56)
HSLhsl(134, 58%, 32%)
HSVhsv(134, 73%, 50%)
CMYKcmyk(73.2%, 0%, 55.9%, 50.2%)
CIE-LABlab(46.72, -42.75, 30.70)
CIE-LCHlch(46.72, 52.63, 144.32°)
OKLaboklab(52.63% -0.1152 0.0736)
OKLCHoklch(52.63% 0.137 147.4)
XYZxyz(8.9622, 15.8034, 6.3186)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F38 #7F2269
analogous
#3A7F22 #227F38 #227F67
triadic
#227F38 #38227F #7F3822
tetradic
#227F38 #223A7F #7F2269 #7F6722
square
#227F38 #223A7F #7F2269 #7F6722
split-complementary
#227F38 #67227F #7F223A
monochromatic
#081E0D #154F23 #227F38 #2FAF4D #4CCF6B

Accessibility & contrast

On white

5.05
#227F38 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#227F38 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F38
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F38#FFFFFF#000000##FFFFFF
##227F381.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817332
Deuteranopia (green-blind)
#756C3D
Tritanopia (blue-blind)
#007C6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #227f38;
/* rgb */ color: rgb(34, 127, 56);
/* oklch */ color: oklch(52.6% 0.137 147.4);
Tailwind
colors: {
  custom: {
    50: '#6ba570',
    500: '#227f38',
    950: '#000000',
  },
}
SCSS
$custom: #227f38;
$custom-light: #6ba570;
$custom-dark: #000000;
JSON
{
  "hex": "#227f38",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 56
  },
  "hsl": {
    "h": 134.194,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52634,
    "c": 0.13667,
    "h": 147.4
  },
  "luminance": 0.15804
}

Semantic roles & 50–950 ramp

primary
#227F38
secondary
#B24B99
accent
#47BDE1
background
#F6FAF6
surface
#ECF4EC
border
#C7CEC7
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #227F38

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

Preview Lab → · Contrast checker → · Palette generator →

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