#227F1B#227F1B

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

Color values

HEX#227F1B
RGBrgb(34, 127, 27)
HSLhsl(116, 65%, 30%)
HSVhsv(116, 79%, 50%)
CMYKcmyk(73.2%, 0%, 78.7%, 50.2%)
CIE-LABlab(46.44, -46.02, 43.45)
CIE-LCHlch(46.44, 63.29, 136.64°)
OKLaboklab(52.32% -0.1253 0.0976)
OKLCHoklch(52.32% 0.159 142.1)
XYZxyz(8.4464, 15.5970, 3.6021)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F1B #781B7F
analogous
#547F1B #227F1B #1B7F46
triadic
#227F1B #1B227F #7F1B22
tetradic
#227F1B #1B547F #781B7F #7F461B
square
#227F1B #1B547F #781B7F #7F461B
split-complementary
#227F1B #461B7F #7F1B54
monochromatic
#071A06 #144D10 #227F1B #30B126 #49D63E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227F1B#FFFFFF#000000##FFFFFF
##227F1B1.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)
#827204
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#067B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f1b;
/* rgb */ color: rgb(34, 127, 27);
/* oklch */ color: oklch(52.3% 0.159 142.1);
Tailwind
colors: {
  custom: {
    50: '#6da55f',
    500: '#227f1b',
    950: '#000000',
  },
}
SCSS
$custom: #227f1b;
$custom-light: #6da55f;
$custom-dark: #000000;
JSON
{
  "hex": "#227f1b",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 115.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52319,
    "c": 0.15881,
    "h": 142.1
  },
  "luminance": 0.15598
}

Semantic roles & 50–950 ramp

primary
#227F1B
secondary
#AB43B3
accent
#40E8DC
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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