#227C1F#227C1F

#227C1F is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.5% C 0.153 H 142.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#227C1F
RGBrgb(34, 124, 31)
HSLhsl(118, 60%, 30%)
HSVhsv(118, 75%, 49%)
CMYKcmyk(72.6%, 0%, 75%, 51.4%)
CIE-LABlab(45.43, -44.64, 40.93)
CIE-LCHlch(45.43, 60.56, 137.48°)
OKLaboklab(51.49% -0.1213 0.0929)
OKLCHoklch(51.49% 0.153 142.6)
XYZxyz(8.1142, 14.8534, 3.7354)
Luminance0.1485 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227C1F #791F7C
analogous
#507C1F #227C1F #1F7C4B
triadic
#227C1F #1F227C #7C1F22
tetradic
#227C1F #1F507C #791F7C #7C4B1F
square
#227C1F #1F507C #791F7C #7C4B1F
split-complementary
#227C1F #4B1F7C #7C1F50
monochromatic
#071A07 #154B13 #227C1F #2FAD2B #49D045

Accessibility & contrast

On white

5.29
#227C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#227C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227C1F
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227C1F#FFFFFF#000000##FFFFFF
##227C1F1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#746929
Tritanopia (blue-blind)
#07786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227c1f;
/* rgb */ color: rgb(34, 124, 31);
/* oklch */ color: oklch(51.5% 0.153 142.6);
Tailwind
colors: {
  custom: {
    50: '#6ca361',
    500: '#227c1f',
    950: '#000000',
  },
}
SCSS
$custom: #227c1f;
$custom-light: #6ca361;
$custom-dark: #000000;
JSON
{
  "hex": "#227c1f",
  "rgb": {
    "r": 34,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 118.065,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51491,
    "c": 0.15281,
    "h": 142.6
  },
  "luminance": 0.14854
}

Semantic roles & 50–950 ramp

primary
#227C1F
secondary
#AC48AF
accent
#45E3DE
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #227C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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