#228727#228727

#228727 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.7% C 0.161 H 143.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#228727
RGBrgb(34, 135, 39)
HSLhsl(123, 60%, 33%)
HSVhsv(123, 75%, 53%)
CMYKcmyk(74.8%, 0%, 71.1%, 47.1%)
CIE-LABlab(49.27, -47.76, 41.65)
CIE-LCHlch(49.27, 63.37, 138.91°)
OKLaboklab(54.69% -0.1294 0.0954)
OKLCHoklch(54.69% 0.161 143.6)
XYZxyz(9.6893, 17.8134, 4.8468)
Luminance0.1782 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228727 #872282
analogous
#4F8722 #228727 #228759
triadic
#228727 #272287 #872722
tetradic
#228727 #224F87 #872282 #875922
square
#228727 #224F87 #872282 #875922
split-complementary
#228727 #592287 #87224F
monochromatic
#09250B #165619 #228727 #2EB835 #50D357

Accessibility & contrast

On white

4.60
#228727 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#228727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #228727
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228727#FFFFFF#000000##FFFFFF
##2287271.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A19
Deuteranopia (green-blind)
#7E7230
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #228727;
/* rgb */ color: rgb(34, 135, 39);
/* oklch */ color: oklch(54.7% 0.161 143.6);
Tailwind
colors: {
  custom: {
    50: '#6eab67',
    500: '#228727',
    950: '#000000',
  },
}
SCSS
$custom: #228727;
$custom-light: #6eab67;
$custom-dark: #000000;
JSON
{
  "hex": "#228727",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 122.97,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54693,
    "c": 0.1608,
    "h": 143.6
  },
  "luminance": 0.17815
}

Semantic roles & 50–950 ramp

primary
#228727
secondary
#B74EB1
accent
#45DBE3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #228727

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

Preview Lab → · Contrast checker → · Palette generator →

#228727 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva