#28781B#28781B

#28781B is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.148 H 141.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#28781B
RGBrgb(40, 120, 27)
HSLhsl(112, 63%, 29%)
HSVhsv(112, 78%, 47%)
CMYKcmyk(66.7%, 0%, 77.5%, 52.9%)
CIE-LABlab(44.18, -42.21, 41.27)
CIE-LCHlch(44.18, 59.03, 135.65°)
OKLaboklab(50.49% -0.1154 0.093)
OKLCHoklch(50.49% 0.148 141.1)
XYZxyz(7.7890, 13.9624, 3.3212)
Luminance0.1396 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28781B #6B1B78
analogous
#57781B #28781B #1B783D
triadic
#28781B #1B2878 #781B28
tetradic
#28781B #1B5778 #6B1B78 #783D1B
square
#28781B #1B5778 #6B1B78 #783D1B
split-complementary
#28781B #3D1B78 #781B57
monochromatic
#081906 #174610 #28781B #39AA26 #50D33B

Accessibility & contrast

On white

5.54
#28781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#28781B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28781B
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28781B#FFFFFF#000000##FFFFFF
##28781B1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C08
Deuteranopia (green-blind)
#726625
Tritanopia (blue-blind)
#1A7466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #28781b;
/* rgb */ color: rgb(40, 120, 27);
/* oklch */ color: oklch(50.5% 0.148 141.1);
Tailwind
colors: {
  custom: {
    50: '#6ea05e',
    500: '#28781b',
    950: '#000000',
  },
}
SCSS
$custom: #28781b;
$custom-light: #6ea05e;
$custom-dark: #000000;
JSON
{
  "hex": "#28781b",
  "rgb": {
    "r": 40,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 111.613,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50487,
    "c": 0.14817,
    "h": 141.1
  },
  "luminance": 0.13963
}

Semantic roles & 50–950 ramp

primary
#28781B
secondary
#9D43AC
accent
#41E6CF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #28781B

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

Preview Lab → · Contrast checker → · Palette generator →

#28781B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva