#227F1C#227F1C

#227F1C is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.158 H 142.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#227F1C
RGBrgb(34, 127, 28)
HSLhsl(116, 64%, 30%)
HSVhsv(116, 78%, 50%)
CMYKcmyk(73.2%, 0%, 78%, 50.2%)
CIE-LABlab(46.45, -45.94, 43.10)
CIE-LCHlch(46.45, 62.99, 136.83°)
OKLaboklab(52.33% -0.125 0.097)
OKLCHoklch(52.33% 0.158 142.2)
XYZxyz(8.4582, 15.6017, 3.6641)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F1C #791C7F
analogous
#537F1C #227F1C #1C7F48
triadic
#227F1C #1C227F #7F1C22
tetradic
#227F1C #1C537F #791C7F #7F481C
square
#227F1C #1C537F #791C7F #7F481C
split-complementary
#227F1C #481C7F #7F1C53
monochromatic
#071B06 #154D11 #227F1C #2FB127 #49D540

Accessibility & contrast

On white

5.10
#227F1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#227F1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F1C
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F1C#FFFFFF#000000##FFFFFF
##227F1C1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827306
Deuteranopia (green-blind)
#776B27
Tritanopia (blue-blind)
#067B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f1c;
/* rgb */ color: rgb(34, 127, 28);
/* oklch */ color: oklch(52.3% 0.158 142.2);
Tailwind
colors: {
  custom: {
    50: '#6da560',
    500: '#227f1c',
    950: '#000000',
  },
}
SCSS
$custom: #227f1c;
$custom-light: #6da560;
$custom-dark: #000000;
JSON
{
  "hex": "#227f1c",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 116.364,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52326,
    "c": 0.15824,
    "h": 142.2
  },
  "luminance": 0.15603
}

Semantic roles & 50–950 ramp

primary
#227F1C
secondary
#AC44B3
accent
#41E7DD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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