#227F3B#227F3B

#227F3B is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.134 H 148.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#227F3B
RGBrgb(34, 127, 59)
HSLhsl(136, 58%, 32%)
HSVhsv(136, 73%, 50%)
CMYKcmyk(73.2%, 0%, 53.5%, 50.2%)
CIE-LABlab(46.76, -42.28, 29.17)
CIE-LCHlch(46.76, 51.37, 145.39°)
OKLaboklab(52.68% -0.1138 0.0704)
OKLCHoklch(52.68% 0.134 148.3)
XYZxyz(9.0378, 15.8336, 6.7167)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F3B #7F2266
analogous
#387F22 #227F3B #227F6A
triadic
#227F3B #3B227F #7F3B22
tetradic
#227F3B #22387F #7F2266 #7F6A22
square
#227F3B #22387F #7F2266 #7F6A22
split-complementary
#227F3B #6A227F #7F2238
monochromatic
#081E0E #154F25 #227F3B #2FAF51 #4CCF6F

Accessibility & contrast

On white

5.04
#227F3B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#227F3B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F3B
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F3B#FFFFFF#000000##FFFFFF
##227F3B1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #227f3b;
/* rgb */ color: rgb(34, 127, 59);
/* oklch */ color: oklch(52.7% 0.134 148.3);
Tailwind
colors: {
  custom: {
    50: '#6ba572',
    500: '#227f3b',
    950: '#000000',
  },
}
SCSS
$custom: #227f3b;
$custom-light: #6ba572;
$custom-dark: #000000;
JSON
{
  "hex": "#227f3b",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 59
  },
  "hsl": {
    "h": 136.129,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5268,
    "c": 0.13386,
    "h": 148.3
  },
  "luminance": 0.15835
}

Semantic roles & 50–950 ramp

primary
#227F3B
secondary
#B24B96
accent
#47B8E1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #227F3B

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

Preview Lab → · Contrast checker → · Palette generator →

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