#227F1D#227F1D

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

Color values

HEX#227F1D
RGBrgb(34, 127, 29)
HSLhsl(117, 63%, 31%)
HSVhsv(117, 77%, 50%)
CMYKcmyk(73.2%, 0%, 77.2%, 50.2%)
CIE-LABlab(46.45, -45.86, 42.74)
CIE-LCHlch(46.45, 62.69, 137.02°)
OKLaboklab(52.33% -0.1248 0.0964)
OKLCHoklch(52.33% 0.158 142.3)
XYZxyz(8.4703, 15.6066, 3.7281)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F1D #7A1D7F
analogous
#537F1D #227F1D #1D7F49
triadic
#227F1D #1D227F #7F1D22
tetradic
#227F1D #1D537F #7A1D7F #7F491D
square
#227F1D #1D537F #7A1D7F #7F491D
split-complementary
#227F1D #491D7F #7F1D53
monochromatic
#071B06 #154D12 #227F1D #2FB128 #4AD442

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227F1D#FFFFFF#000000##FFFFFF
##227F1D1.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)
#827309
Deuteranopia (green-blind)
#776B28
Tritanopia (blue-blind)
#057B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f1d;
/* rgb */ color: rgb(34, 127, 29);
/* oklch */ color: oklch(52.3% 0.158 142.3);
Tailwind
colors: {
  custom: {
    50: '#6da560',
    500: '#227f1d',
    950: '#000000',
  },
}
SCSS
$custom: #227f1d;
$custom-light: #6da560;
$custom-dark: #000000;
JSON
{
  "hex": "#227f1d",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 116.939,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52334,
    "c": 0.15765,
    "h": 142.3
  },
  "luminance": 0.15608
}

Semantic roles & 50–950 ramp

primary
#227F1D
secondary
#AD45B2
accent
#42E6DE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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