#28851D#28851D

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

Color values

HEX#28851D
RGBrgb(40, 133, 29)
HSLhsl(114, 64%, 32%)
HSVhsv(114, 78%, 52%)
CMYKcmyk(69.9%, 0%, 78.2%, 47.8%)
CIE-LABlab(48.65, -46.77, 44.96)
CIE-LCHlch(48.65, 64.87, 136.13°)
OKLaboklab(54.2% -0.1276 0.101)
OKLCHoklch(54.2% 0.163 141.6)
XYZxyz(9.4839, 17.3139, 4.0043)
Luminance0.1731 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28851D #7A1D85
analogous
#5C851D #28851D #1D8546
triadic
#28851D #1D2885 #851D28
tetradic
#28851D #1D5C85 #7A1D85 #85461D
square
#28851D #1D5C85 #7A1D85 #85461D
split-complementary
#28851D #461D85 #851D5C
monochromatic
#0A2107 #195312 #28851D #37B728 #55D746

Accessibility & contrast

On white

4.71
#28851D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#28851D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28851D
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28851D#FFFFFF#000000##FFFFFF
##28851D1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887805
Deuteranopia (green-blind)
#7E7129
Tritanopia (blue-blind)
#138171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #28851d;
/* rgb */ color: rgb(40, 133, 29);
/* oklch */ color: oklch(54.2% 0.163 141.6);
Tailwind
colors: {
  custom: {
    50: '#70a961',
    500: '#28851d',
    950: '#000000',
  },
}
SCSS
$custom: #28851d;
$custom-light: #70a961;
$custom-dark: #000000;
JSON
{
  "hex": "#28851d",
  "rgb": {
    "r": 40,
    "g": 133,
    "b": 29
  },
  "hsl": {
    "h": 113.654,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54199,
    "c": 0.16269,
    "h": 141.6
  },
  "luminance": 0.17315
}

Semantic roles & 50–950 ramp

primary
#28851D
secondary
#AC46B8
accent
#41E7D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #28851D

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

Preview Lab → · Contrast checker → · Palette generator →

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