#28851F#28851F

#28851F is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.2% C 0.162 H 141.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#28851F
RGBrgb(40, 133, 31)
HSLhsl(115, 62%, 32%)
HSVhsv(115, 77%, 52%)
CMYKcmyk(69.9%, 0%, 76.7%, 47.8%)
CIE-LABlab(48.67, -46.61, 44.25)
CIE-LCHlch(48.67, 64.27, 136.49°)
OKLaboklab(54.21% -0.127 0.0998)
OKLCHoklch(54.21% 0.162 141.9)
XYZxyz(9.5094, 17.3241, 4.1388)
Luminance0.1732 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28851F #7C1F85
analogous
#5B851F #28851F #1F8549
triadic
#28851F #1F2885 #851F28
tetradic
#28851F #1F5B85 #7C1F85 #85491F
square
#28851F #1F5B85 #7C1F85 #85491F
split-complementary
#28851F #491F85 #851F5B
monochromatic
#0A2208 #195313 #28851F #37B72B #56D54A

Accessibility & contrast

On white

4.70
#28851F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#28851F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28851F
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28851F#FFFFFF#000000##FFFFFF
##28851F1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780A
Deuteranopia (green-blind)
#7D712A
Tritanopia (blue-blind)
#128171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #28851f;
/* rgb */ color: rgb(40, 133, 31);
/* oklch */ color: oklch(54.2% 0.162 141.9);
Tailwind
colors: {
  custom: {
    50: '#70a962',
    500: '#28851f',
    950: '#000000',
  },
}
SCSS
$custom: #28851f;
$custom-light: #70a962;
$custom-dark: #000000;
JSON
{
  "hex": "#28851f",
  "rgb": {
    "r": 40,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 114.706,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54213,
    "c": 0.16154,
    "h": 141.9
  },
  "luminance": 0.17325
}

Semantic roles & 50–950 ramp

primary
#28851F
secondary
#AD49B7
accent
#43E5D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #28851F

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

Preview Lab → · Contrast checker → · Palette generator →

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