#227E1B#227E1B

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

Color values

HEX#227E1B
RGBrgb(34, 126, 27)
HSLhsl(116, 65%, 30%)
HSVhsv(116, 79%, 49%)
CMYKcmyk(73%, 0%, 78.6%, 50.6%)
CIE-LABlab(46.10, -45.67, 43.11)
CIE-LCHlch(46.10, 62.81, 136.65°)
OKLaboklab(52.03% -0.1243 0.0969)
OKLCHoklch(52.03% 0.158 142.1)
XYZxyz(8.3179, 15.3400, 3.5593)
Luminance0.1534 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E1B #771B7E
analogous
#537E1B #227E1B #1B7E46
triadic
#227E1B #1B227E #7E1B22
tetradic
#227E1B #1B537E #771B7E #7E461B
square
#227E1B #1B537E #771B7E #7E461B
split-complementary
#227E1B #461B7E #7E1B53
monochromatic
#071905 #144C10 #227E1B #30B026 #49D63E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227E1B#FFFFFF#000000##FFFFFF
##227E1B1.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)
#817205
Deuteranopia (green-blind)
#776A26
Tritanopia (blue-blind)
#077A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227e1b;
/* rgb */ color: rgb(34, 126, 27);
/* oklch */ color: oklch(52.0% 0.158 142.1);
Tailwind
colors: {
  custom: {
    50: '#6da45f',
    500: '#227e1b',
    950: '#000000',
  },
}
SCSS
$custom: #227e1b;
$custom-light: #6da45f;
$custom-dark: #000000;
JSON
{
  "hex": "#227e1b",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 115.758,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.52033,
    "c": 0.15763,
    "h": 142.1
  },
  "luminance": 0.15341
}

Semantic roles & 50–950 ramp

primary
#227E1B
secondary
#AA43B2
accent
#40E8DC
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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