#155F28#155F28

#155F28 is a dark, moderate green. Relative luminance 0.085; OKLCH L 42.8% C 0.112 H 147.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#155F28
RGBrgb(21, 95, 40)
HSLhsl(135, 64%, 23%)
HSVhsv(135, 78%, 37%)
CMYKcmyk(77.9%, 0%, 57.9%, 62.7%)
CIE-LABlab(35.00, -35.20, 24.98)
CIE-LCHlch(35.00, 43.16, 144.64°)
OKLaboklab(42.79% -0.0947 0.0599)
OKLCHoklch(42.79% 0.112 147.7)
XYZxyz(4.7841, 8.4965, 3.3949)
Luminance0.0850 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#155F28 #5F154C
analogous
#275F15 #155F28 #155F4D
triadic
#155F28 #28155F #5F2815
tetradic
#155F28 #15275F #5F154C #5F4D15
square
#155F28 #15275F #5F154C #5F4D15
split-complementary
#155F28 #4D155F #5F1527
monochromatic
#06190B #0A2D13 #155F28 #20913D #2BC352

Accessibility & contrast

On white

7.78
#155F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#155F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #155F28
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##155F28#FFFFFF#000000##FFFFFF
##155F281.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605623
Deuteranopia (green-blind)
#57502C
Tritanopia (blue-blind)
#005D53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #155f28;
/* rgb */ color: rgb(21, 95, 40);
/* oklch */ color: oklch(42.8% 0.112 147.7);
Tailwind
colors: {
  custom: {
    50: '#5f8d63',
    500: '#155f28',
    950: '#000000',
  },
}
SCSS
$custom: #155f28;
$custom-light: #5f8d63;
$custom-dark: #000000;
JSON
{
  "hex": "#155f28",
  "rgb": {
    "r": 21,
    "g": 95,
    "b": 40
  },
  "hsl": {
    "h": 135.405,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42785,
    "c": 0.11209,
    "h": 147.7
  },
  "luminance": 0.08497
}

Semantic roles & 50–950 ramp

primary
#155F28
secondary
#963A7E
accent
#41BCE7
background
#F5F8F6
surface
#EAF0EB
border
#C6CBC6
text
#050C05
muted
#797D7A

Preview Lab

Preview with #155F28

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

Preview Lab → · Contrast checker → · Palette generator →

#155F28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva