#227D1C#227D1C

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

Color values

HEX#227D1C
RGBrgb(34, 125, 28)
HSLhsl(116, 63%, 30%)
HSVhsv(116, 78%, 49%)
CMYKcmyk(72.8%, 0%, 77.6%, 51%)
CIE-LABlab(45.76, -45.24, 42.41)
CIE-LCHlch(45.76, 62.01, 136.85°)
OKLaboklab(51.75% -0.1231 0.0956)
OKLCHoklch(51.75% 0.156 142.2)
XYZxyz(8.2024, 15.0903, 3.5788)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D1C #771C7D
analogous
#527D1C #227D1C #1C7D47
triadic
#227D1C #1C227D #7D1C22
tetradic
#227D1C #1C527D #771C7D #7D471C
square
#227D1C #1C527D #771C7D #7D471C
split-complementary
#227D1C #471C7D #7D1C52
monochromatic
#071906 #144B11 #227D1C #30AF27 #49D43F

Accessibility & contrast

On white

5.23
#227D1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #227D1C
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D1C#FFFFFF#000000##FFFFFF
##227D1C1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807108
Deuteranopia (green-blind)
#766A27
Tritanopia (blue-blind)
#07796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227d1c;
/* rgb */ color: rgb(34, 125, 28);
/* oklch */ color: oklch(51.8% 0.156 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ca460',
    500: '#227d1c',
    950: '#000000',
  },
}
SCSS
$custom: #227d1c;
$custom-light: #6ca460;
$custom-dark: #000000;
JSON
{
  "hex": "#227d1c",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 116.289,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.51753,
    "c": 0.15586,
    "h": 142.2
  },
  "luminance": 0.15091
}

Semantic roles & 50–950 ramp

primary
#227D1C
secondary
#AA44B1
accent
#41E6DC
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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