#227E1C#227E1C

#227E1C is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.157 H 142.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#227E1C
RGBrgb(34, 126, 28)
HSLhsl(116, 64%, 30%)
HSVhsv(116, 78%, 49%)
CMYKcmyk(73%, 0%, 77.8%, 50.6%)
CIE-LABlab(46.10, -45.59, 42.76)
CIE-LCHlch(46.10, 62.50, 136.84°)
OKLaboklab(52.04% -0.1241 0.0963)
OKLCHoklch(52.04% 0.157 142.2)
XYZxyz(8.3297, 15.3447, 3.6212)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E1C #781C7E
analogous
#537E1C #227E1C #1C7E47
triadic
#227E1C #1C227E #7E1C22
tetradic
#227E1C #1C537E #781C7E #7E471C
square
#227E1C #1C537E #781C7E #7E471C
split-complementary
#227E1C #471C7E #7E1C53
monochromatic
#071A06 #144C11 #227E1C #30B027 #49D540

Accessibility & contrast

On white

5.16
#227E1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#227E1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227E1C
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E1C#FFFFFF#000000##FFFFFF
##227E1C1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817207
Deuteranopia (green-blind)
#766A27
Tritanopia (blue-blind)
#077A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227e1c;
/* rgb */ color: rgb(34, 126, 28);
/* oklch */ color: oklch(52.0% 0.157 142.2);
Tailwind
colors: {
  custom: {
    50: '#6da460',
    500: '#227e1c',
    950: '#000000',
  },
}
SCSS
$custom: #227e1c;
$custom-light: #6da460;
$custom-dark: #000000;
JSON
{
  "hex": "#227e1c",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 116.327,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5204,
    "c": 0.15705,
    "h": 142.2
  },
  "luminance": 0.15346
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #227E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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