#28731D#28731D

#28731D is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.141 H 141.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#28731D
RGBrgb(40, 115, 29)
HSLhsl(112, 60%, 28%)
HSVhsv(112, 75%, 45%)
CMYKcmyk(65.2%, 0%, 74.8%, 54.9%)
CIE-LABlab(42.46, -40.16, 38.74)
CIE-LCHlch(42.46, 55.80, 136.03°)
OKLaboklab(49.07% -0.1097 0.088)
OKLCHoklch(49.07% 0.141 141.3)
XYZxyz(7.2272, 12.8006, 3.2521)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28731D #681D73
analogous
#53731D #28731D #1D733D
triadic
#28731D #1D2873 #731D28
tetradic
#28731D #1D5373 #681D73 #733D1D
square
#28731D #1D5373 #681D73 #733D1D
split-complementary
#28731D #3D1D73 #731D53
monochromatic
#081806 #174211 #28731D #39A429 #4FCE3C

Accessibility & contrast

On white

5.90
#28731D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#28731D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28731D
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28731D#FFFFFF#000000##FFFFFF
##28731D1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680F
Deuteranopia (green-blind)
#6D6226
Tritanopia (blue-blind)
#1C6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #28731d;
/* rgb */ color: rgb(40, 115, 29);
/* oklch */ color: oklch(49.1% 0.141 141.3);
Tailwind
colors: {
  custom: {
    50: '#6c9c5f',
    500: '#28731d',
    950: '#000000',
  },
}
SCSS
$custom: #28731d;
$custom-light: #6c9c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#28731d",
  "rgb": {
    "r": 40,
    "g": 115,
    "b": 29
  },
  "hsl": {
    "h": 112.326,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.4907,
    "c": 0.14063,
    "h": 141.3
  },
  "luminance": 0.12801
}

Semantic roles & 50–950 ramp

primary
#28731D
secondary
#9B45A7
accent
#45E3CF
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #28731D

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

Preview Lab → · Contrast checker → · Palette generator →

#28731D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva