#28711B#28711B

#28711B is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.5% C 0.139 H 140.9°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#28711B
RGBrgb(40, 113, 27)
HSLhsl(111, 61%, 27%)
HSVhsv(111, 76%, 44%)
CMYKcmyk(64.6%, 0%, 76.1%, 55.7%)
CIE-LABlab(41.75, -39.57, 38.83)
CIE-LCHlch(41.75, 55.43, 135.54°)
OKLaboklab(48.48% -0.1082 0.0879)
OKLCHoklch(48.48% 0.139 140.9)
XYZxyz(6.9777, 12.3398, 3.0508)
Luminance0.1234 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28711B #641B71
analogous
#53711B #28711B #1B7139
triadic
#28711B #1B2871 #711B28
tetradic
#28711B #1B5371 #641B71 #71391B
square
#28711B #1B5371 #641B71 #71391B
split-complementary
#28711B #391B71 #711B53
monochromatic
#091906 #17400F #28711B #39A227 #4ECF37

Accessibility & contrast

On white

6.06
#28711B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#28711B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28711B
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28711B#FFFFFF#000000##FFFFFF
##28711B1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74660B
Deuteranopia (green-blind)
#6B6024
Tritanopia (blue-blind)
#1D6D60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #28711b;
/* rgb */ color: rgb(40, 113, 27);
/* oklch */ color: oklch(48.5% 0.139 140.9);
Tailwind
colors: {
  custom: {
    50: '#6c9b5d',
    500: '#28711b',
    950: '#000000',
  },
}
SCSS
$custom: #28711b;
$custom-light: #6c9b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#28711b",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 27
  },
  "hsl": {
    "h": 110.93,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.48478,
    "c": 0.13941,
    "h": 140.9
  },
  "luminance": 0.12341
}

Semantic roles & 50–950 ramp

primary
#28711B
secondary
#9742A6
accent
#43E5CC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #28711B

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

Preview Lab → · Contrast checker → · Palette generator →

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