#227417#227417

#227417 is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.1% C 0.148 H 141.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#227417
RGBrgb(34, 116, 23)
HSLhsl(113, 67%, 27%)
HSVhsv(113, 80%, 45%)
CMYKcmyk(70.7%, 0%, 80.2%, 54.5%)
CIE-LABlab(42.60, -42.41, 41.12)
CIE-LCHlch(42.60, 59.08, 135.88°)
OKLaboklab(49.12% -0.1158 0.0921)
OKLCHoklch(49.12% 0.148 141.5)
XYZxyz(7.0594, 12.8920, 2.9268)
Luminance0.1289 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227417 #691774
analogous
#517417 #227417 #17743A
triadic
#227417 #172274 #741722
tetradic
#227417 #175174 #691774 #743A17
square
#227417 #175174 #691774 #743A17
split-complementary
#227417 #3A1774 #741751
monochromatic
#071A05 #13410D #227417 #31A721 #43D630

Accessibility & contrast

On white

5.87
#227417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#227417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227417
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227417#FFFFFF#000000##FFFFFF
##2274171.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776902
Deuteranopia (green-blind)
#6D6222
Tritanopia (blue-blind)
#107062
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #227417;
/* rgb */ color: rgb(34, 116, 23);
/* oklch */ color: oklch(49.1% 0.148 141.5);
Tailwind
colors: {
  custom: {
    50: '#6a9d5c',
    500: '#227417',
    950: '#000000',
  },
}
SCSS
$custom: #227417;
$custom-light: #6a9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#227417",
  "rgb": {
    "r": 34,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 112.903,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49124,
    "c": 0.14795,
    "h": 141.5
  },
  "luminance": 0.12893
}

Semantic roles & 50–950 ramp

primary
#227417
secondary
#9D3DA9
accent
#3EEAD5
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #227417

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

Preview Lab → · Contrast checker → · Palette generator →

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