#226828#226828

#226828 is a mid, moderate green. Relative luminance 0.104; OKLCH L 45.8% C 0.120 H 144.7°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#226828
RGBrgb(34, 104, 40)
HSLhsl(125, 51%, 27%)
HSVhsv(125, 67%, 41%)
CMYKcmyk(67.3%, 0%, 61.5%, 59.2%)
CIE-LABlab(38.54, -36.08, 29.27)
CIE-LCHlch(38.54, 46.46, 140.95°)
OKLaboklab(45.81% -0.0977 0.0692)
OKLCHoklch(45.81% 0.12 144.7)
XYZxyz(5.9926, 10.3933, 3.6974)
Luminance0.1039 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#226828 #682262
analogous
#3F6822 #226828 #22684B
triadic
#226828 #282268 #682822
tetradic
#226828 #223F68 #682262 #684B22
square
#226828 #223F68 #682262 #684B22
split-complementary
#226828 #4B2268 #68223F
monochromatic
#081709 #133A16 #226828 #31963A #43C24E

Accessibility & contrast

On white

6.82
#226828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#226828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #226828
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##226828#FFFFFF#000000##FFFFFF
##2268281.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5E21
Deuteranopia (green-blind)
#61582D
Tritanopia (blue-blind)
#11655A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #226828;
/* rgb */ color: rgb(34, 104, 40);
/* oklch */ color: oklch(45.8% 0.120 144.7);
Tailwind
colors: {
  custom: {
    50: '#679464',
    500: '#226828',
    950: '#000000',
  },
}
SCSS
$custom: #226828;
$custom-light: #679464;
$custom-dark: #000000;
JSON
{
  "hex": "#226828",
  "rgb": {
    "r": 34,
    "g": 104,
    "b": 40
  },
  "hsl": {
    "h": 125.143,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.45811,
    "c": 0.11973,
    "h": 144.7
  },
  "luminance": 0.10394
}

Semantic roles & 50–950 ramp

primary
#226828
secondary
#9C4A95
accent
#4ECEDA
background
#F6F9F6
surface
#EBF1EB
border
#C6CBC6
text
#060D05
muted
#7A7E7A

Preview Lab

Preview with #226828

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

Preview Lab → · Contrast checker → · Palette generator →

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