#227F2E#227F2E

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

Color values

HEX#227F2E
RGBrgb(34, 127, 46)
HSLhsl(128, 58%, 32%)
HSVhsv(128, 73%, 50%)
CMYKcmyk(73.2%, 0%, 63.8%, 50.2%)
CIE-LABlab(46.60, -44.13, 35.57)
CIE-LCHlch(46.60, 56.68, 141.13°)
OKLaboklab(52.5% -0.1192 0.0833)
OKLCHoklch(52.5% 0.145 145)
XYZxyz(8.7416, 15.7151, 5.1569)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F2E #7F2273
analogous
#457F22 #227F2E #227F5D
triadic
#227F2E #2E227F #7F2E22
tetradic
#227F2E #22457F #7F2273 #7F5D22
square
#227F2E #22457F #7F2273 #7F5D22
split-complementary
#227F2E #5D227F #7F2245
monochromatic
#081E0B #154F1D #227F2E #2FAF3F #4CCF5D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227F2E#FFFFFF#000000##FFFFFF
##227F2E1.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)
#817325
Deuteranopia (green-blind)
#766C35
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f2e;
/* rgb */ color: rgb(34, 127, 46);
/* oklch */ color: oklch(52.5% 0.145 145.0);
Tailwind
colors: {
  custom: {
    50: '#6ca56a',
    500: '#227f2e',
    950: '#000000',
  },
}
SCSS
$custom: #227f2e;
$custom-light: #6ca56a;
$custom-dark: #000000;
JSON
{
  "hex": "#227f2e",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 127.742,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.525,
    "c": 0.14547,
    "h": 145
  },
  "luminance": 0.15716
}

Semantic roles & 50–950 ramp

primary
#227F2E
secondary
#B24BA4
accent
#47CDE1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #227F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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