#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 |
|---|---|
| RGB | rgb(34, 104, 40) |
| HSL | hsl(125, 51%, 27%) |
| HSV | hsv(125, 67%, 41%) |
| CMYK | cmyk(67.3%, 0%, 61.5%, 59.2%) |
| CIE-LAB | lab(38.54, -36.08, 29.27) |
| CIE-LCH | lch(38.54, 46.46, 140.95°) |
| OKLab | oklab(45.81% -0.0977 0.0692) |
| OKLCH | oklch(45.81% 0.12 144.7) |
| XYZ | xyz(5.9926, 10.3933, 3.6974) |
| Luminance | 0.1039 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 5.02
Forest Green
#2D5A27
ΔE00 5.31
Deep Green
#02590F
ΔE00 5.49
Pine
#2B5D34
ΔE00 5.96
Forest
#0B5509
ΔE00 6.66
Darkish Green
#287C37
ΔE00 6.81
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 |
|---|---|---|---|---|
| ##226828 | 1.00 | 6.82 | 3.08 | 6.82 |
| #FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.82 | 1.00 | 21.00 | 1.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