#227B2C#227B2C

#227B2C is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.3% C 0.142 H 144.8°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#227B2C
RGBrgb(34, 123, 44)
HSLhsl(127, 57%, 31%)
HSVhsv(127, 72%, 48%)
CMYKcmyk(72.4%, 0%, 64.2%, 51.8%)
CIE-LABlab(45.20, -42.90, 34.94)
CIE-LCHlch(45.20, 55.33, 140.84°)
OKLaboklab(51.34% -0.116 0.0818)
OKLCHoklch(51.34% 0.142 144.8)
XYZxyz(8.1967, 14.6870, 4.7853)
Luminance0.1469 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B2C #7B2271
analogous
#447B22 #227B2C #227B58
triadic
#227B2C #2C227B #7B2C22
tetradic
#227B2C #22447B #7B2271 #7B5822
square
#227B2C #22447B #7B2271 #7B5822
split-complementary
#227B2C #58227B #7B2244
monochromatic
#071B0A #154B1B #227B2C #2FAB3D #4ACD59

Accessibility & contrast

On white

5.33
#227B2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#227B2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227B2C
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227B2C#FFFFFF#000000##FFFFFF
##227B2C1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F23
Deuteranopia (green-blind)
#736833
Tritanopia (blue-blind)
#01786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227b2c;
/* rgb */ color: rgb(34, 123, 44);
/* oklch */ color: oklch(51.3% 0.142 144.8);
Tailwind
colors: {
  custom: {
    50: '#6ba268',
    500: '#227b2c',
    950: '#000000',
  },
}
SCSS
$custom: #227b2c;
$custom-light: #6ba268;
$custom-dark: #000000;
JSON
{
  "hex": "#227b2c",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 44
  },
  "hsl": {
    "h": 126.742,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51337,
    "c": 0.14193,
    "h": 144.8
  },
  "luminance": 0.14688
}

Semantic roles & 50–950 ramp

primary
#227B2C
secondary
#AE4BA3
accent
#48CFE0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #227B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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