#226817#226817

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

Color values

HEX#226817
RGBrgb(34, 104, 23)
HSLhsl(112, 64%, 25%)
HSVhsv(112, 78%, 41%)
CMYKcmyk(67.3%, 0%, 77.9%, 59.2%)
CIE-LABlab(38.38, -37.95, 36.95)
CIE-LCHlch(38.38, 52.96, 135.76°)
OKLaboklab(45.63% -0.1037 0.0834)
OKLCHoklch(45.63% 0.133 141.2)
XYZxyz(5.7644, 10.3020, 2.4952)
Luminance0.1030 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#226817 #5D1768
analogous
#4A6817 #226817 #176835
triadic
#226817 #172268 #681722
tetradic
#226817 #174A68 #5D1768 #683517
square
#226817 #174A68 #5D1768 #683517
split-complementary
#226817 #351768 #68174A
monochromatic
#081906 #12360C #226817 #329A22 #43CC2D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##226817#FFFFFF#000000##FFFFFF
##2268171.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)
#6B5E08
Deuteranopia (green-blind)
#62581F
Tritanopia (blue-blind)
#166558
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #226817;
/* rgb */ color: rgb(34, 104, 23);
/* oklch */ color: oklch(45.6% 0.133 141.2);
Tailwind
colors: {
  custom: {
    50: '#68945a',
    500: '#226817',
    950: '#000000',
  },
}
SCSS
$custom: #226817;
$custom-light: #68945a;
$custom-dark: #000000;
JSON
{
  "hex": "#226817",
  "rgb": {
    "r": 34,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 111.852,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.45627,
    "c": 0.13309,
    "h": 141.2
  },
  "luminance": 0.10303
}

Semantic roles & 50–950 ramp

primary
#226817
secondary
#913D9E
accent
#41E7D0
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #226817

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

Preview Lab → · Contrast checker → · Palette generator →

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