#227A1F#227A1F

#227A1F is a mid, vivid green. Relative luminance 0.144; OKLCH L 50.9% C 0.150 H 142.6°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#227A1F
RGBrgb(34, 122, 31)
HSLhsl(118, 59%, 30%)
HSVhsv(118, 75%, 48%)
CMYKcmyk(72.1%, 0%, 74.6%, 52.2%)
CIE-LABlab(44.74, -43.92, 40.22)
CIE-LCHlch(44.74, 59.56, 137.52°)
OKLaboklab(50.92% -0.1194 0.0914)
OKLCHoklch(50.92% 0.15 142.6)
XYZxyz(7.8661, 14.3572, 3.6527)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A1F #771F7A
analogous
#4F7A1F #227A1F #1F7A4A
triadic
#227A1F #1F227A #7A1F22
tetradic
#227A1F #1F4F7A #771F7A #7A4A1F
square
#227A1F #1F4F7A #771F7A #7A4A1F
split-complementary
#227A1F #4A1F7A #7A1F4F
monochromatic
#071806 #144913 #227A1F #30AB2B #49CF44

Accessibility & contrast

On white

5.42
#227A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#227A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A1F
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A1F#FFFFFF#000000##FFFFFF
##227A1F1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E10
Deuteranopia (green-blind)
#736728
Tritanopia (blue-blind)
#097668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a1f;
/* rgb */ color: rgb(34, 122, 31);
/* oklch */ color: oklch(50.9% 0.150 142.6);
Tailwind
colors: {
  custom: {
    50: '#6ba161',
    500: '#227a1f',
    950: '#000000',
  },
}
SCSS
$custom: #227a1f;
$custom-light: #6ba161;
$custom-dark: #000000;
JSON
{
  "hex": "#227a1f",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 118.022,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.50917,
    "c": 0.15038,
    "h": 142.6
  },
  "luminance": 0.14358
}

Semantic roles & 50–950 ramp

primary
#227A1F
secondary
#AA47AD
accent
#45E3DD
background
#F6FAF5
surface
#ECF3EA
border
#C7CDC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #227A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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