#28711F#28711F

#28711F is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.5% C 0.137 H 141.5°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#28711F
RGBrgb(40, 113, 31)
HSLhsl(113, 57%, 28%)
HSVhsv(113, 73%, 44%)
CMYKcmyk(64.6%, 0%, 72.6%, 55.7%)
CIE-LABlab(41.78, -39.21, 37.20)
CIE-LCHlch(41.78, 54.04, 136.51°)
OKLaboklab(48.51% -0.107 0.085)
OKLCHoklch(48.51% 0.137 141.5)
XYZxyz(7.0272, 12.3596, 3.3114)
Luminance0.1236 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28711F #681F71
analogous
#51711F #28711F #1F713F
triadic
#28711F #1F2871 #711F28
tetradic
#28711F #1F5171 #681F71 #713F1F
square
#28711F #1F5171 #681F71 #713F1F
split-complementary
#28711F #3F1F71 #711F51
monochromatic
#081807 #174112 #28711F #39A12C #4FCB40

Accessibility & contrast

On white

6.05
#28711F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #28711F
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28711F#FFFFFF#000000##FFFFFF
##28711F1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746613
Deuteranopia (green-blind)
#6B6027
Tritanopia (blue-blind)
#1C6D61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #28711f;
/* rgb */ color: rgb(40, 113, 31);
/* oklch */ color: oklch(48.5% 0.137 141.5);
Tailwind
colors: {
  custom: {
    50: '#6c9b60',
    500: '#28711f',
    950: '#000000',
  },
}
SCSS
$custom: #28711f;
$custom-light: #6c9b60;
$custom-dark: #000000;
JSON
{
  "hex": "#28711f",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 31
  },
  "hsl": {
    "h": 113.415,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.48514,
    "c": 0.13667,
    "h": 141.5
  },
  "luminance": 0.1236
}

Semantic roles & 50–950 ramp

primary
#28711F
secondary
#9B47A5
accent
#48E0CF
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #28711F

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

Preview Lab → · Contrast checker → · Palette generator →

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