#28751B#28751B

#28751B is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.6% C 0.144 H 141.1°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#28751B
RGBrgb(40, 117, 27)
HSLhsl(111, 63%, 28%)
HSVhsv(111, 77%, 46%)
CMYKcmyk(65.8%, 0%, 76.9%, 54.1%)
CIE-LABlab(43.14, -41.09, 40.23)
CIE-LCHlch(43.14, 57.50, 135.61°)
OKLaboklab(49.63% -0.1123 0.0908)
OKLCHoklch(49.63% 0.144 141.1)
XYZxyz(7.4338, 13.2521, 3.2029)
Luminance0.1325 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28751B #681B75
analogous
#55751B #28751B #1B753B
triadic
#28751B #1B2875 #751B28
tetradic
#28751B #1B5575 #681B75 #753B1B
square
#28751B #1B5575 #681B75 #753B1B
split-complementary
#28751B #3B1B75 #751B55
monochromatic
#091906 #174310 #28751B #39A726 #4FD139

Accessibility & contrast

On white

5.75
#28751B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#28751B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28751B
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28751B#FFFFFF#000000##FFFFFF
##28751B1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A0A
Deuteranopia (green-blind)
#6F6324
Tritanopia (blue-blind)
#1B7164
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #28751b;
/* rgb */ color: rgb(40, 117, 27);
/* oklch */ color: oklch(49.6% 0.144 141.1);
Tailwind
colors: {
  custom: {
    50: '#6d9e5e',
    500: '#28751b',
    950: '#000000',
  },
}
SCSS
$custom: #28751b;
$custom-light: #6d9e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#28751b",
  "rgb": {
    "r": 40,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 111.333,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.49628,
    "c": 0.14445,
    "h": 141.1
  },
  "luminance": 0.13253
}

Semantic roles & 50–950 ramp

primary
#28751B
secondary
#9B42A9
accent
#42E6CE
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #28751B

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

Preview Lab → · Contrast checker → · Palette generator →

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