#227F1E#227F1E

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

Color values

HEX#227F1E
RGBrgb(34, 127, 30)
HSLhsl(118, 62%, 31%)
HSVhsv(118, 76%, 50%)
CMYKcmyk(73.2%, 0%, 76.4%, 50.2%)
CIE-LABlab(46.46, -45.78, 42.36)
CIE-LCHlch(46.46, 62.38, 137.22°)
OKLaboklab(52.34% -0.1245 0.0957)
OKLCHoklch(52.34% 0.157 142.4)
XYZxyz(8.4829, 15.6116, 3.7943)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F1E #7B1E7F
analogous
#527F1E #227F1E #1E7F4A
triadic
#227F1E #1E227F #7F1E22
tetradic
#227F1E #1E527F #7B1E7F #7F4A1E
square
#227F1E #1E527F #7B1E7F #7F4A1E
split-complementary
#227F1E #4A1E7F #7F1E52
monochromatic
#071C07 #154D12 #227F1E #2FB12A #4AD344

Accessibility & contrast

On white

5.09
#227F1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #227F1E
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F1E#FFFFFF#000000##FFFFFF
##227F1E1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730B
Deuteranopia (green-blind)
#776B28
Tritanopia (blue-blind)
#057B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f1e;
/* rgb */ color: rgb(34, 127, 30);
/* oklch */ color: oklch(52.3% 0.157 142.4);
Tailwind
colors: {
  custom: {
    50: '#6da561',
    500: '#227f1e',
    950: '#000000',
  },
}
SCSS
$custom: #227f1e;
$custom-light: #6da561;
$custom-dark: #000000;
JSON
{
  "hex": "#227f1e",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 117.526,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52341,
    "c": 0.15706,
    "h": 142.4
  },
  "luminance": 0.15613
}

Semantic roles & 50–950 ramp

primary
#227F1E
secondary
#AE47B2
accent
#43E5DE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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