#28731B#28731B

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

Color values

HEX#28731B
RGBrgb(40, 115, 27)
HSLhsl(111, 62%, 28%)
HSVhsv(111, 77%, 45%)
CMYKcmyk(65.2%, 0%, 76.5%, 54.9%)
CIE-LABlab(42.45, -40.33, 39.53)
CIE-LCHlch(42.45, 56.47, 135.58°)
OKLaboklab(49.05% -0.1103 0.0893)
OKLCHoklch(49.05% 0.142 141)
XYZxyz(7.2033, 12.7910, 3.1260)
Luminance0.1279 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28731B #661B73
analogous
#54731B #28731B #1B733A
triadic
#28731B #1B2873 #731B28
tetradic
#28731B #1B5473 #661B73 #733A1B
square
#28731B #1B5473 #661B73 #733A1B
split-complementary
#28731B #3A1B73 #731B54
monochromatic
#091906 #17410F #28731B #39A527 #4FD038

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28731B#FFFFFF#000000##FFFFFF
##28731B1.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)
#76680B
Deuteranopia (green-blind)
#6D6224
Tritanopia (blue-blind)
#1C6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #28731b;
/* rgb */ color: rgb(40, 115, 27);
/* oklch */ color: oklch(49.1% 0.142 141.0);
Tailwind
colors: {
  custom: {
    50: '#6d9c5e',
    500: '#28731b',
    950: '#000000',
  },
}
SCSS
$custom: #28731b;
$custom-light: #6d9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#28731b",
  "rgb": {
    "r": 40,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 111.136,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49053,
    "c": 0.14194,
    "h": 141
  },
  "luminance": 0.12792
}

Semantic roles & 50–950 ramp

primary
#28731B
secondary
#9942A8
accent
#43E5CD
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #28731B

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

Preview Lab → · Contrast checker → · Palette generator →

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