#227B18#227B18

#227B18 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.156 H 141.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#227B18
RGBrgb(34, 123, 24)
HSLhsl(114, 67%, 29%)
HSVhsv(114, 80%, 48%)
CMYKcmyk(72.4%, 0%, 80.5%, 51.8%)
CIE-LABlab(45.04, -44.84, 43.14)
CIE-LCHlch(45.04, 62.22, 136.10°)
OKLaboklab(51.15% -0.1222 0.0965)
OKLCHoklch(51.15% 0.156 141.7)
XYZxyz(7.9071, 14.5711, 3.2598)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B18 #71187B
analogous
#547B18 #227B18 #187B40
triadic
#227B18 #18227B #7B1822
tetradic
#227B18 #18547B #71187B #7B4018
square
#227B18 #18547B #71187B #7B4018
split-complementary
#227B18 #40187B #7B1854
monochromatic
#071A05 #14480E #227B18 #30AE22 #46D836

Accessibility & contrast

On white

5.36
#227B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#227B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227B18
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227B18#FFFFFF#000000##FFFFFF
##227B181.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#0B7768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227b18;
/* rgb */ color: rgb(34, 123, 24);
/* oklch */ color: oklch(51.2% 0.156 141.7);
Tailwind
colors: {
  custom: {
    50: '#6ca25d',
    500: '#227b18',
    950: '#000000',
  },
}
SCSS
$custom: #227b18;
$custom-light: #6ca25d;
$custom-dark: #000000;
JSON
{
  "hex": "#227b18",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 113.939,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51151,
    "c": 0.15574,
    "h": 141.7
  },
  "luminance": 0.14572
}

Semantic roles & 50–950 ramp

primary
#227B18
secondary
#A43FB0
accent
#3EEAD9
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #227B18

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

Preview Lab → · Contrast checker → · Palette generator →

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