#228642#228642

#228642 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.8% C 0.137 H 149.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#228642
RGBrgb(34, 134, 66)
HSLhsl(139, 60%, 33%)
HSVhsv(139, 75%, 53%)
CMYKcmyk(74.6%, 0%, 50.7%, 47.5%)
CIE-LABlab(49.23, -43.82, 28.53)
CIE-LCHlch(49.23, 52.29, 146.93°)
OKLaboklab(54.76% -0.1179 0.0693)
OKLCHoklch(54.76% 0.137 149.5)
XYZxyz(10.1673, 17.7825, 8.0497)
Luminance0.1778 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228642 #862266
analogous
#348622 #228642 #228674
triadic
#228642 #422286 #864222
tetradic
#228642 #223486 #862266 #867422
square
#228642 #223486 #862266 #867422
split-complementary
#228642 #742286 #862234
monochromatic
#092412 #16552A #228642 #2EB75A #50D37A

Accessibility & contrast

On white

4.61
#228642 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #228642
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228642#FFFFFF#000000##FFFFFF
##2286421.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877A3C
Deuteranopia (green-blind)
#7B7247
Tritanopia (blue-blind)
#008376
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #228642;
/* rgb */ color: rgb(34, 134, 66);
/* oklch */ color: oklch(54.8% 0.137 149.5);
Tailwind
colors: {
  custom: {
    50: '#6daa78',
    500: '#228642',
    950: '#000000',
  },
}
SCSS
$custom: #228642;
$custom-light: #6daa78;
$custom-dark: #000000;
JSON
{
  "hex": "#228642",
  "rgb": {
    "r": 34,
    "g": 134,
    "b": 66
  },
  "hsl": {
    "h": 139.2,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54759,
    "c": 0.13676,
    "h": 149.5
  },
  "luminance": 0.17784
}

Semantic roles & 50–950 ramp

primary
#228642
secondary
#B64E95
accent
#45B0E3
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #228642

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

Preview Lab → · Contrast checker → · Palette generator →

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