#227F2C#227F2C

#227F2C is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.147 H 144.6°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#227F2C
RGBrgb(34, 127, 44)
HSLhsl(126, 58%, 32%)
HSVhsv(126, 73%, 50%)
CMYKcmyk(73.2%, 0%, 65.4%, 50.2%)
CIE-LABlab(46.58, -44.37, 36.49)
CIE-LCHlch(46.58, 57.45, 140.56°)
OKLaboklab(52.48% -0.12 0.0851)
OKLCHoklch(52.48% 0.147 144.6)
XYZxyz(8.7031, 15.6997, 4.9541)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F2C #7F2275
analogous
#477F22 #227F2C #227F5B
triadic
#227F2C #2C227F #7F2C22
tetradic
#227F2C #22477F #7F2275 #7F5B22
square
#227F2C #22477F #7F2275 #7F5B22
split-complementary
#227F2C #5B227F #7F2247
monochromatic
#081E0B #154F1B #227F2C #2FAF3D #4CCF5A

Accessibility & contrast

On white

5.07
#227F2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#227F2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F2C
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F2C#FFFFFF#000000##FFFFFF
##227F2C1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817322
Deuteranopia (green-blind)
#766B33
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f2c;
/* rgb */ color: rgb(34, 127, 44);
/* oklch */ color: oklch(52.5% 0.147 144.6);
Tailwind
colors: {
  custom: {
    50: '#6ca569',
    500: '#227f2c',
    950: '#000000',
  },
}
SCSS
$custom: #227f2c;
$custom-light: #6ca569;
$custom-dark: #000000;
JSON
{
  "hex": "#227f2c",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 44
  },
  "hsl": {
    "h": 126.452,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52476,
    "c": 0.1471,
    "h": 144.6
  },
  "luminance": 0.15701
}

Semantic roles & 50–950 ramp

primary
#227F2C
secondary
#B24BA7
accent
#47D0E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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