#227817#227817

#227817 is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.3% C 0.153 H 141.6°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#227817
RGBrgb(34, 120, 23)
HSLhsl(113, 68%, 28%)
HSVhsv(113, 81%, 47%)
CMYKcmyk(71.7%, 0%, 80.8%, 52.9%)
CIE-LABlab(43.99, -43.85, 42.47)
CIE-LCHlch(43.99, 61.05, 135.91°)
OKLaboklab(50.28% -0.1196 0.095)
OKLCHoklch(50.28% 0.153 141.6)
XYZxyz(7.5304, 13.8341, 3.0838)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227817 #6D1778
analogous
#527817 #227817 #17783C
triadic
#227817 #172278 #781722
tetradic
#227817 #175278 #6D1778 #783C17
square
#227817 #175278 #6D1778 #783C17
split-complementary
#227817 #3C1778 #781752
monochromatic
#071A05 #13450D #227817 #31AB21 #45D832

Accessibility & contrast

On white

5.57
#227817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#227817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227817
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227817#FFFFFF#000000##FFFFFF
##2278171.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#716522
Tritanopia (blue-blind)
#0D7466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #227817;
/* rgb */ color: rgb(34, 120, 23);
/* oklch */ color: oklch(50.3% 0.153 141.6);
Tailwind
colors: {
  custom: {
    50: '#6ba05c',
    500: '#227817',
    950: '#000000',
  },
}
SCSS
$custom: #227817;
$custom-light: #6ba05c;
$custom-dark: #000000;
JSON
{
  "hex": "#227817",
  "rgb": {
    "r": 34,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 113.196,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5028,
    "c": 0.15273,
    "h": 141.6
  },
  "luminance": 0.13835
}

Semantic roles & 50–950 ramp

primary
#227817
secondary
#A13EAD
accent
#3DEBD7
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080F04
muted
#7A7E79

Preview Lab

Preview with #227817

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

Preview Lab → · Contrast checker → · Palette generator →

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