#226818#226818

#226818 is a mid, vivid green. Relative luminance 0.103; OKLCH L 45.6% C 0.132 H 141.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#226818
RGBrgb(34, 104, 24)
HSLhsl(113, 63%, 25%)
HSVhsv(113, 77%, 41%)
CMYKcmyk(67.3%, 0%, 76.9%, 59.2%)
CIE-LABlab(38.39, -37.86, 36.56)
CIE-LCHlch(38.39, 52.63, 136.01°)
OKLaboklab(45.64% -0.1034 0.0828)
OKLCHoklch(45.64% 0.132 141.3)
XYZxyz(5.7746, 10.3061, 2.5489)
Luminance0.1031 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#226818 #5E1868
analogous
#4A6818 #226818 #186836
triadic
#226818 #182268 #681822
tetradic
#226818 #184A68 #5E1868 #683618
square
#226818 #184A68 #5E1868 #683618
split-complementary
#226818 #361868 #68184A
monochromatic
#081906 #12360D #226818 #329A23 #43CB2F

Accessibility & contrast

On white

6.86
#226818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#226818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #226818
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##226818#FFFFFF#000000##FFFFFF
##2268181.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E0A
Deuteranopia (green-blind)
#625820
Tritanopia (blue-blind)
#166558
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #226818;
/* rgb */ color: rgb(34, 104, 24);
/* oklch */ color: oklch(45.6% 0.132 141.3);
Tailwind
colors: {
  custom: {
    50: '#68945b',
    500: '#226818',
    950: '#000000',
  },
}
SCSS
$custom: #226818;
$custom-light: #68945b;
$custom-dark: #000000;
JSON
{
  "hex": "#226818",
  "rgb": {
    "r": 34,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 112.5,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.45635,
    "c": 0.13244,
    "h": 141.3
  },
  "luminance": 0.10307
}

Semantic roles & 50–950 ramp

primary
#226818
secondary
#923E9E
accent
#42E6D1
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #226818

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

Preview Lab → · Contrast checker → · Palette generator →

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