#227F21#227F21

#227F21 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.155 H 142.8°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#227F21
RGBrgb(34, 127, 33)
HSLhsl(119, 59%, 31%)
HSVhsv(119, 74%, 50%)
CMYKcmyk(73.2%, 0%, 74%, 50.2%)
CIE-LABlab(46.48, -45.52, 41.21)
CIE-LCHlch(46.48, 61.40, 137.85°)
OKLaboklab(52.37% -0.1236 0.0937)
OKLCHoklch(52.37% 0.155 142.8)
XYZxyz(8.5231, 15.6277, 4.0058)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F21 #7E217F
analogous
#517F21 #227F21 #217F4F
triadic
#227F21 #21227F #7F2122
tetradic
#227F21 #21517F #7E217F #7F4F21
square
#227F21 #21517F #7E217F #7F4F21
split-complementary
#227F21 #4F217F #7F2151
monochromatic
#081E08 #154E14 #227F21 #2FB02E #4CD04A

Accessibility & contrast

On white

5.09
#227F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#227F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F21
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F21#FFFFFF#000000##FFFFFF
##227F211.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827311
Deuteranopia (green-blind)
#776B2B
Tritanopia (blue-blind)
#047B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f21;
/* rgb */ color: rgb(34, 127, 33);
/* oklch */ color: oklch(52.4% 0.155 142.8);
Tailwind
colors: {
  custom: {
    50: '#6ca562',
    500: '#227f21',
    950: '#000000',
  },
}
SCSS
$custom: #227f21;
$custom-light: #6ca562;
$custom-dark: #000000;
JSON
{
  "hex": "#227f21",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 119.362,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52366,
    "c": 0.15516,
    "h": 142.8
  },
  "luminance": 0.15629
}

Semantic roles & 50–950 ramp

primary
#227F21
secondary
#B14AB2
accent
#46E2E0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #227F21

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

Preview Lab → · Contrast checker → · Palette generator →

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