#227F2F#227F2F

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

Color values

HEX#227F2F
RGBrgb(34, 127, 47)
HSLhsl(128, 58%, 32%)
HSVhsv(128, 73%, 50%)
CMYKcmyk(73.2%, 0%, 63%, 50.2%)
CIE-LABlab(46.61, -44.00, 35.10)
CIE-LCHlch(46.61, 56.28, 141.42°)
OKLaboklab(52.51% -0.1188 0.0824)
OKLCHoklch(52.51% 0.145 145.3)
XYZxyz(8.7616, 15.7231, 5.2619)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F2F #7F2272
analogous
#447F22 #227F2F #227F5E
triadic
#227F2F #2F227F #7F2F22
tetradic
#227F2F #22447F #7F2272 #7F5E22
square
#227F2F #22447F #7F2272 #7F5E22
split-complementary
#227F2F #5E227F #7F2244
monochromatic
#081E0B #154F1D #227F2F #2FAF41 #4CCF5F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227F2F#FFFFFF#000000##FFFFFF
##227F2F1.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)
#817326
Deuteranopia (green-blind)
#766C36
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f2f;
/* rgb */ color: rgb(34, 127, 47);
/* oklch */ color: oklch(52.5% 0.145 145.3);
Tailwind
colors: {
  custom: {
    50: '#6ca56b',
    500: '#227f2f',
    950: '#000000',
  },
}
SCSS
$custom: #227f2f;
$custom-light: #6ca56b;
$custom-dark: #000000;
JSON
{
  "hex": "#227f2f",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 128.387,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52512,
    "c": 0.14464,
    "h": 145.3
  },
  "luminance": 0.15724
}

Semantic roles & 50–950 ramp

primary
#227F2F
secondary
#B24BA3
accent
#47CBE1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #227F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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