#227A1B#227A1B

#227A1B is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.153 H 142.0°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#227A1B
RGBrgb(34, 122, 27)
HSLhsl(116, 64%, 29%)
HSVhsv(116, 78%, 48%)
CMYKcmyk(72.1%, 0%, 77.9%, 52.2%)
CIE-LABlab(44.71, -44.26, 41.75)
CIE-LCHlch(44.71, 60.84, 136.67°)
OKLaboklab(50.89% -0.1205 0.094)
OKLCHoklch(50.89% 0.153 142)
XYZxyz(7.8166, 14.3374, 3.3922)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A1B #731B7A
analogous
#527A1B #227A1B #1B7A44
triadic
#227A1B #1B227A #7A1B22
tetradic
#227A1B #1B527A #731B7A #7A441B
square
#227A1B #1B527A #731B7A #7A441B
split-complementary
#227A1B #441B7A #7A1B52
monochromatic
#071906 #144810 #227A1B #30AC26 #47D43C

Accessibility & contrast

On white

5.43
#227A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#227A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A1B
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A1B#FFFFFF#000000##FFFFFF
##227A1B1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E07
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#0A7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a1b;
/* rgb */ color: rgb(34, 122, 27);
/* oklch */ color: oklch(50.9% 0.153 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ca15f',
    500: '#227a1b',
    950: '#000000',
  },
}
SCSS
$custom: #227a1b;
$custom-light: #6ca15f;
$custom-dark: #000000;
JSON
{
  "hex": "#227a1b",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 115.579,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50885,
    "c": 0.15286,
    "h": 142
  },
  "luminance": 0.14338
}

Semantic roles & 50–950 ramp

primary
#227A1B
secondary
#A643AE
accent
#41E7DB
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #227A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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