#227F2D#227F2D

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

Color values

HEX#227F2D
RGBrgb(34, 127, 45)
HSLhsl(127, 58%, 32%)
HSVhsv(127, 73%, 50%)
CMYKcmyk(73.2%, 0%, 64.6%, 50.2%)
CIE-LABlab(46.59, -44.25, 36.03)
CIE-LCHlch(46.59, 57.06, 140.84°)
OKLaboklab(52.49% -0.1196 0.0843)
OKLCHoklch(52.49% 0.146 144.8)
XYZxyz(8.7221, 15.7073, 5.0543)
Luminance0.1571 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F2D #7F2274
analogous
#467F22 #227F2D #227F5C
triadic
#227F2D #2D227F #7F2D22
tetradic
#227F2D #22467F #7F2274 #7F5C22
square
#227F2D #22467F #7F2274 #7F5C22
split-complementary
#227F2D #5C227F #7F2246
monochromatic
#081E0B #154F1C #227F2D #2FAF3E #4CCF5C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227F2D#FFFFFF#000000##FFFFFF
##227F2D1.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)
#817324
Deuteranopia (green-blind)
#766B34
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f2d;
/* rgb */ color: rgb(34, 127, 45);
/* oklch */ color: oklch(52.5% 0.146 144.8);
Tailwind
colors: {
  custom: {
    50: '#6ca569',
    500: '#227f2d',
    950: '#000000',
  },
}
SCSS
$custom: #227f2d;
$custom-light: #6ca569;
$custom-dark: #000000;
JSON
{
  "hex": "#227f2d",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 127.097,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52488,
    "c": 0.14629,
    "h": 144.8
  },
  "luminance": 0.15708
}

Semantic roles & 50–950 ramp

primary
#227F2D
secondary
#B24BA5
accent
#47CFE1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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