#227818#227818

#227818 is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.3% C 0.152 H 141.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#227818
RGBrgb(34, 120, 24)
HSLhsl(114, 67%, 28%)
HSVhsv(114, 80%, 47%)
CMYKcmyk(71.7%, 0%, 80%, 52.9%)
CIE-LABlab(44.00, -43.78, 42.13)
CIE-LCHlch(44.00, 60.76, 136.10°)
OKLaboklab(50.29% -0.1194 0.0944)
OKLCHoklch(50.29% 0.152 141.7)
XYZxyz(7.5406, 13.8382, 3.1376)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227818 #6E1878
analogous
#527818 #227818 #18783E
triadic
#227818 #182278 #781822
tetradic
#227818 #185278 #6E1878 #783E18
square
#227818 #185278 #6E1878 #783E18
split-complementary
#227818 #3E1878 #781852
monochromatic
#071A05 #14450E #227818 #30AB22 #45D634

Accessibility & contrast

On white

5.57
#227818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#227818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227818
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227818#FFFFFF#000000##FFFFFF
##2278181.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C02
Deuteranopia (green-blind)
#716523
Tritanopia (blue-blind)
#0D7466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #227818;
/* rgb */ color: rgb(34, 120, 24);
/* oklch */ color: oklch(50.3% 0.152 141.7);
Tailwind
colors: {
  custom: {
    50: '#6ba05d',
    500: '#227818',
    950: '#000000',
  },
}
SCSS
$custom: #227818;
$custom-light: #6ba05d;
$custom-dark: #000000;
JSON
{
  "hex": "#227818",
  "rgb": {
    "r": 34,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 113.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50287,
    "c": 0.15218,
    "h": 141.7
  },
  "luminance": 0.13839
}

Semantic roles & 50–950 ramp

primary
#227818
secondary
#A13FAD
accent
#3EEAD8
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080F04
muted
#7A7E79

Preview Lab

Preview with #227818

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

Preview Lab → · Contrast checker → · Palette generator →

#227818 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva