#228726#228726

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

Color values

HEX#228726
RGBrgb(34, 135, 38)
HSLhsl(122, 60%, 33%)
HSVhsv(122, 75%, 53%)
CMYKcmyk(74.8%, 0%, 71.9%, 47.1%)
CIE-LABlab(49.26, -47.86, 42.06)
CIE-LCHlch(49.26, 63.71, 138.69°)
OKLaboklab(54.68% -0.1297 0.0962)
OKLCHoklch(54.68% 0.161 143.4)
XYZxyz(9.6729, 17.8069, 4.7606)
Luminance0.1781 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228726 #872283
analogous
#508722 #228726 #228758
triadic
#228726 #262287 #872622
tetradic
#228726 #225087 #872283 #875822
square
#228726 #225087 #872283 #875822
split-complementary
#228726 #582287 #872250
monochromatic
#09250A #165618 #228726 #2EB834 #50D356

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228726#FFFFFF#000000##FFFFFF
##2287261.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)
#8A7A17
Deuteranopia (green-blind)
#7E7230
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #228726;
/* rgb */ color: rgb(34, 135, 38);
/* oklch */ color: oklch(54.7% 0.161 143.4);
Tailwind
colors: {
  custom: {
    50: '#6eab66',
    500: '#228726',
    950: '#000000',
  },
}
SCSS
$custom: #228726;
$custom-light: #6eab66;
$custom-dark: #000000;
JSON
{
  "hex": "#228726",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 38
  },
  "hsl": {
    "h": 122.376,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54684,
    "c": 0.16149,
    "h": 143.4
  },
  "luminance": 0.17808
}

Semantic roles & 50–950 ramp

primary
#228726
secondary
#B74EB2
accent
#45DDE3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #228726

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

Preview Lab → · Contrast checker → · Palette generator →

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