#227F17#227F17

#227F17 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.161 H 141.7°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#227F17
RGBrgb(34, 127, 23)
HSLhsl(114, 69%, 29%)
HSVhsv(114, 82%, 50%)
CMYKcmyk(73.2%, 0%, 81.9%, 50.2%)
CIE-LABlab(46.42, -46.30, 44.79)
CIE-LCHlch(46.42, 64.42, 135.95°)
OKLaboklab(52.29% -0.1262 0.0998)
OKLCHoklch(52.29% 0.161 141.7)
XYZxyz(8.4032, 15.5798, 3.3748)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F17 #74177F
analogous
#567F17 #227F17 #177F40
triadic
#227F17 #17227F #7F1722
tetradic
#227F17 #17567F #74177F #7F4017
square
#227F17 #17567F #74177F #7F4017
split-complementary
#227F17 #40177F #7F1756
monochromatic
#071A05 #144B0E #227F17 #30B320 #47DB36

Accessibility & contrast

On white

5.10
#227F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#227F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F17
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F17#FFFFFF#000000##FFFFFF
##227F171.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786B24
Tritanopia (blue-blind)
#077B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f17;
/* rgb */ color: rgb(34, 127, 23);
/* oklch */ color: oklch(52.3% 0.161 141.7);
Tailwind
colors: {
  custom: {
    50: '#6da55d',
    500: '#227f17',
    950: '#000000',
  },
}
SCSS
$custom: #227f17;
$custom-light: #6da55d;
$custom-dark: #000000;
JSON
{
  "hex": "#227f17",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 113.654,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52292,
    "c": 0.16093,
    "h": 141.7
  },
  "luminance": 0.15581
}

Semantic roles & 50–950 ramp

primary
#227F17
secondary
#A73EB4
accent
#3CECD9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227F17

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

Preview Lab → · Contrast checker → · Palette generator →

#227F17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva