#227D21#227D21

#227D21 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.153 H 142.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#227D21
RGBrgb(34, 125, 33)
HSLhsl(119, 58%, 31%)
HSVhsv(119, 74%, 49%)
CMYKcmyk(72.8%, 0%, 73.6%, 51%)
CIE-LABlab(45.79, -44.81, 40.50)
CIE-LCHlch(45.79, 60.40, 137.90°)
OKLaboklab(51.79% -0.1217 0.0923)
OKLCHoklch(51.79% 0.153 142.8)
XYZxyz(8.2673, 15.1162, 3.9206)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D21 #7C217D
analogous
#507D21 #227D21 #217D4E
triadic
#227D21 #21227D #7D2122
tetradic
#227D21 #21507D #7C217D #7D4E21
square
#227D21 #21507D #7C217D #7D4E21
split-complementary
#227D21 #4E217D #7D2150
monochromatic
#081C07 #154D14 #227D21 #2FAD2E #4BCF49

Accessibility & contrast

On white

5.22
#227D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#227D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227D21
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D21#FFFFFF#000000##FFFFFF
##227D211.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807112
Deuteranopia (green-blind)
#756A2A
Tritanopia (blue-blind)
#05796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227d21;
/* rgb */ color: rgb(34, 125, 33);
/* oklch */ color: oklch(51.8% 0.153 142.8);
Tailwind
colors: {
  custom: {
    50: '#6ca462',
    500: '#227d21',
    950: '#000000',
  },
}
SCSS
$custom: #227d21;
$custom-light: #6ca462;
$custom-dark: #000000;
JSON
{
  "hex": "#227d21",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 119.348,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51794,
    "c": 0.15273,
    "h": 142.8
  },
  "luminance": 0.15117
}

Semantic roles & 50–950 ramp

primary
#227D21
secondary
#AF4AB0
accent
#46E1E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #227D21

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

Preview Lab → · Contrast checker → · Palette generator →

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