#227D1F#227D1F

#227D1F is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.154 H 142.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#227D1F
RGBrgb(34, 125, 31)
HSLhsl(118, 60%, 31%)
HSVhsv(118, 75%, 49%)
CMYKcmyk(72.8%, 0%, 75.2%, 51%)
CIE-LABlab(45.78, -44.99, 41.28)
CIE-LCHlch(45.78, 61.06, 137.46°)
OKLaboklab(51.78% -0.1223 0.0936)
OKLCHoklch(51.78% 0.154 142.6)
XYZxyz(8.2401, 15.1053, 3.7774)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D1F #7A1F7D
analogous
#517D1F #227D1F #1F7D4B
triadic
#227D1F #1F227D #7D1F22
tetradic
#227D1F #1F517D #7A1F7D #7D4B1F
square
#227D1F #1F517D #7A1F7D #7D4B1F
split-complementary
#227D1F #4B1F7D #7D1F51
monochromatic
#071B07 #154C13 #227D1F #2FAE2B #4AD145

Accessibility & contrast

On white

5.22
#227D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#227D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227D1F
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D1F#FFFFFF#000000##FFFFFF
##227D1F1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#756A29
Tritanopia (blue-blind)
#06796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227d1f;
/* rgb */ color: rgb(34, 125, 31);
/* oklch */ color: oklch(51.8% 0.154 142.6);
Tailwind
colors: {
  custom: {
    50: '#6ca461',
    500: '#227d1f',
    950: '#000000',
  },
}
SCSS
$custom: #227d1f;
$custom-light: #6ca461;
$custom-dark: #000000;
JSON
{
  "hex": "#227d1f",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 118.085,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51777,
    "c": 0.15403,
    "h": 142.6
  },
  "luminance": 0.15106
}

Semantic roles & 50–950 ramp

primary
#227D1F
secondary
#AD48B0
accent
#44E3DE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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