#228740#228740

#228740 is a mid, vivid green. Relative luminance 0.180; OKLCH L 55.0% C 0.140 H 148.8°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#228740
RGBrgb(34, 135, 64)
HSLhsl(138, 60%, 33%)
HSVhsv(138, 75%, 53%)
CMYKcmyk(74.8%, 0%, 52.6%, 47.1%)
CIE-LABlab(49.54, -44.52, 29.97)
CIE-LCHlch(49.54, 53.67, 146.05°)
OKLaboklab(55.01% -0.1198 0.0725)
OKLCHoklch(55.01% 0.14 148.8)
XYZxyz(10.2483, 18.0370, 7.7909)
Luminance0.1804 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228740 #872269
analogous
#368722 #228740 #228772
triadic
#228740 #402287 #874022
tetradic
#228740 #223687 #872269 #877222
square
#228740 #223687 #872269 #877222
split-complementary
#228740 #722287 #872236
monochromatic
#092512 #165629 #228740 #2EB857 #50D377

Accessibility & contrast

On white

4.56
#228740 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#228740 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228740
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228740#FFFFFF#000000##000000
##2287401.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887B3A
Deuteranopia (green-blind)
#7C7245
Tritanopia (blue-blind)
#008477
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #228740;
/* rgb */ color: rgb(34, 135, 64);
/* oklch */ color: oklch(55.0% 0.140 148.8);
Tailwind
colors: {
  custom: {
    50: '#6dab76',
    500: '#228740',
    950: '#000000',
  },
}
SCSS
$custom: #228740;
$custom-light: #6dab76;
$custom-dark: #000000;
JSON
{
  "hex": "#228740",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 64
  },
  "hsl": {
    "h": 137.822,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55006,
    "c": 0.14001,
    "h": 148.8
  },
  "luminance": 0.18038
}

Semantic roles & 50–950 ramp

primary
#228740
secondary
#B74E98
accent
#45B4E3
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #228740

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

Preview Lab → · Contrast checker → · Palette generator →

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