#1B7828#1B7828

#1B7828 is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.3% C 0.144 H 145.0°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#1B7828
RGBrgb(27, 120, 40)
HSLhsl(128, 63%, 29%)
HSVhsv(128, 78%, 47%)
CMYKcmyk(77.5%, 0%, 66.7%, 52.9%)
CIE-LABlab(43.97, -43.55, 35.42)
CIE-LCHlch(43.97, 56.14, 140.88°)
OKLaboklab(50.26% -0.1176 0.0824)
OKLCHoklch(50.26% 0.144 145)
XYZxyz(7.5509, 13.8183, 4.2763)
Luminance0.1382 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7828 #781B6B
analogous
#3D781B #1B7828 #1B7857
triadic
#1B7828 #281B78 #78281B
tetradic
#1B7828 #1B3D78 #781B6B #78571B
square
#1B7828 #1B3D78 #781B6B #78571B
split-complementary
#1B7828 #571B78 #781B3D
monochromatic
#061908 #104617 #1B7828 #26AA39 #3BD350

Accessibility & contrast

On white

5.58
#1B7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#1B7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B7828
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B7828#FFFFFF#000000##FFFFFF
##1B78281.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C1E
Deuteranopia (green-blind)
#70652F
Tritanopia (blue-blind)
#007567
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1b7828;
/* rgb */ color: rgb(27, 120, 40);
/* oklch */ color: oklch(50.3% 0.144 145.0);
Tailwind
colors: {
  custom: {
    50: '#68a066',
    500: '#1b7828',
    950: '#000000',
  },
}
SCSS
$custom: #1b7828;
$custom-light: #68a066;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7828",
  "rgb": {
    "r": 27,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 128.387,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50259,
    "c": 0.14361,
    "h": 145
  },
  "luminance": 0.13819
}

Semantic roles & 50–950 ramp

primary
#1B7828
secondary
#AC439D
accent
#41CFE6
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #1B7828

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

Preview Lab → · Contrast checker → · Palette generator →

#1B7828 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva