#227F28#227F28

#227F28 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.4% C 0.150 H 143.9°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#227F28
RGBrgb(34, 127, 40)
HSLhsl(124, 58%, 32%)
HSVhsv(124, 73%, 50%)
CMYKcmyk(73.2%, 0%, 68.5%, 50.2%)
CIE-LABlab(46.54, -44.83, 38.29)
CIE-LCHlch(46.54, 58.95, 139.50°)
OKLaboklab(52.43% -0.1214 0.0885)
OKLCHoklch(52.43% 0.15 143.9)
XYZxyz(8.6315, 15.6711, 4.5770)
Luminance0.1567 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F28 #7F2279
analogous
#4B7F22 #227F28 #227F57
triadic
#227F28 #28227F #7F2822
tetradic
#227F28 #224B7F #7F2279 #7F5722
square
#227F28 #224B7F #7F2279 #7F5722
split-complementary
#227F28 #57227F #7F224B
monochromatic
#081E0A #154F19 #227F28 #2FAF37 #4CCF55

Accessibility & contrast

On white

5.08
#227F28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#227F28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F28
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F28#FFFFFF#000000##FFFFFF
##227F281.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731D
Deuteranopia (green-blind)
#776B30
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f28;
/* rgb */ color: rgb(34, 127, 40);
/* oklch */ color: oklch(52.4% 0.150 143.9);
Tailwind
colors: {
  custom: {
    50: '#6ca566',
    500: '#227f28',
    950: '#000000',
  },
}
SCSS
$custom: #227f28;
$custom-light: #6ca566;
$custom-dark: #000000;
JSON
{
  "hex": "#227f28",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 123.871,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52432,
    "c": 0.15022,
    "h": 143.9
  },
  "luminance": 0.15672
}

Semantic roles & 50–950 ramp

primary
#227F28
secondary
#B24BAB
accent
#47D7E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227F28

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

Preview Lab → · Contrast checker → · Palette generator →

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