#226812#226812

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

Color values

HEX#226812
RGBrgb(34, 104, 18)
HSLhsl(109, 70%, 24%)
HSVhsv(109, 83%, 41%)
CMYKcmyk(67.3%, 0%, 82.7%, 59.2%)
CIE-LABlab(38.35, -38.33, 38.77)
CIE-LCHlch(38.35, 54.52, 134.67°)
OKLaboklab(45.59% -0.105 0.0865)
OKLCHoklch(45.59% 0.136 140.5)
XYZxyz(5.7189, 10.2838, 2.2557)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#226812 #581268
analogous
#4D6812 #226812 #12682D
triadic
#226812 #122268 #681222
tetradic
#226812 #124D68 #581268 #682D12
square
#226812 #124D68 #581268 #682D12
split-complementary
#226812 #2D1268 #68124D
monochromatic
#091A05 #113409 #226812 #339C1B #44D024

Accessibility & contrast

On white

6.87
#226812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #226812
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##226812#FFFFFF#000000##FFFFFF
##2268121.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E00
Deuteranopia (green-blind)
#63581C
Tritanopia (blue-blind)
#176458
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #226812;
/* rgb */ color: rgb(34, 104, 18);
/* oklch */ color: oklch(45.6% 0.136 140.5);
Tailwind
colors: {
  custom: {
    50: '#689458',
    500: '#226812',
    950: '#000000',
  },
}
SCSS
$custom: #226812;
$custom-light: #689458;
$custom-dark: #000000;
JSON
{
  "hex": "#226812",
  "rgb": {
    "r": 34,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 108.837,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.4559,
    "c": 0.13603,
    "h": 140.5
  },
  "luminance": 0.10284
}

Semantic roles & 50–950 ramp

primary
#226812
secondary
#8C36A0
accent
#3BEDCC
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#070D03
muted
#7A7E78

Preview Lab

Preview with #226812

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

Preview Lab → · Contrast checker → · Palette generator →

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