#227C28#227C28

#227C28 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.146 H 144.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#227C28
RGBrgb(34, 124, 40)
HSLhsl(124, 57%, 31%)
HSVhsv(124, 73%, 49%)
CMYKcmyk(72.6%, 0%, 67.7%, 51.4%)
CIE-LABlab(45.51, -43.74, 37.16)
CIE-LCHlch(45.51, 57.39, 139.65°)
OKLaboklab(51.58% -0.1184 0.0861)
OKLCHoklch(51.58% 0.146 144)
XYZxyz(8.2498, 14.9077, 4.4498)
Luminance0.1491 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227C28 #7C2276
analogous
#497C22 #227C28 #227C55
triadic
#227C28 #28227C #7C2822
tetradic
#227C28 #22497C #7C2276 #7C5522
square
#227C28 #22497C #7C2276 #7C5522
split-complementary
#227C28 #55227C #7C2249
monochromatic
#081C09 #154C19 #227C28 #2FAC37 #4BCE54

Accessibility & contrast

On white

5.27
#227C28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#227C28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227C28
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227C28#FFFFFF#000000##FFFFFF
##227C281.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701D
Deuteranopia (green-blind)
#746930
Tritanopia (blue-blind)
#03786B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227c28;
/* rgb */ color: rgb(34, 124, 40);
/* oklch */ color: oklch(51.6% 0.146 144.0);
Tailwind
colors: {
  custom: {
    50: '#6ba366',
    500: '#227c28',
    950: '#000000',
  },
}
SCSS
$custom: #227c28;
$custom-light: #6ba366;
$custom-dark: #000000;
JSON
{
  "hex": "#227c28",
  "rgb": {
    "r": 34,
    "g": 124,
    "b": 40
  },
  "hsl": {
    "h": 124,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51577,
    "c": 0.14644,
    "h": 144
  },
  "luminance": 0.14909
}

Semantic roles & 50–950 ramp

primary
#227C28
secondary
#AF4BA8
accent
#48D6E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227C28

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

Preview Lab → · Contrast checker → · Palette generator →

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