#227E12#227E12

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

Color values

HEX#227E12
RGBrgb(34, 126, 18)
HSLhsl(111, 75%, 28%)
HSVhsv(111, 86%, 49%)
CMYKcmyk(73%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.05, -46.25, 45.96)
CIE-LCHlch(46.05, 65.21, 135.18°)
OKLaboklab(51.98% -0.1264 0.1015)
OKLCHoklch(51.98% 0.162 141.2)
XYZxyz(8.2293, 15.3046, 3.0925)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E12 #6E127E
analogous
#587E12 #227E12 #127E38
triadic
#227E12 #12227E #7E1222
tetradic
#227E12 #12587E #6E127E #7E3812
square
#227E12 #12587E #6E127E #7E3812
split-complementary
#227E12 #38127E #7E1258
monochromatic
#071B04 #14480A #227E12 #30B41A #45E12A

Accessibility & contrast

On white

5.17
#227E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#227E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227E12
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E12#FFFFFF#000000##FFFFFF
##227E121.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776A20
Tritanopia (blue-blind)
#0A7A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227e12;
/* rgb */ color: rgb(34, 126, 18);
/* oklch */ color: oklch(52.0% 0.162 141.2);
Tailwind
colors: {
  custom: {
    50: '#6da45b',
    500: '#227e12',
    950: '#000000',
  },
}
SCSS
$custom: #227e12;
$custom-light: #6da45b;
$custom-dark: #000000;
JSON
{
  "hex": "#227e12",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 111.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51978,
    "c": 0.16208,
    "h": 141.2
  },
  "luminance": 0.15305
}

Semantic roles & 50–950 ramp

primary
#227E12
secondary
#A138B4
accent
#36F2D6
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #227E12

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

Preview Lab → · Contrast checker → · Palette generator →

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