#28851A#28851A

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

Color values

HEX#28851A
RGBrgb(40, 133, 26)
HSLhsl(112, 67%, 31%)
HSVhsv(112, 80%, 52%)
CMYKcmyk(69.9%, 0%, 80.5%, 47.8%)
CIE-LABlab(48.64, -46.98, 45.98)
CIE-LCHlch(48.64, 65.73, 135.62°)
OKLaboklab(54.18% -0.1283 0.1027)
OKLCHoklch(54.18% 0.164 141.3)
XYZxyz(9.4485, 17.2998, 3.8183)
Luminance0.1730 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28851A #771A85
analogous
#5D851A #28851A #1A8541
triadic
#28851A #1A2885 #851A28
tetradic
#28851A #1A5D85 #771A85 #85411A
square
#28851A #1A5D85 #771A85 #85411A
split-complementary
#28851A #411A85 #851A5D
monochromatic
#091F06 #195210 #28851A #37B824 #54DA40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28851A#FFFFFF#000000##FFFFFF
##28851A1.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)
#887800
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#148171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #28851a;
/* rgb */ color: rgb(40, 133, 26);
/* oklch */ color: oklch(54.2% 0.164 141.3);
Tailwind
colors: {
  custom: {
    50: '#71a960',
    500: '#28851a',
    950: '#000000',
  },
}
SCSS
$custom: #28851a;
$custom-light: #71a960;
$custom-dark: #000000;
JSON
{
  "hex": "#28851a",
  "rgb": {
    "r": 40,
    "g": 133,
    "b": 26
  },
  "hsl": {
    "h": 112.15,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54178,
    "c": 0.1643,
    "h": 141.3
  },
  "luminance": 0.17301
}

Semantic roles & 50–950 ramp

primary
#28851A
secondary
#A942B8
accent
#3EEAD4
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #28851A

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

Preview Lab → · Contrast checker → · Palette generator →

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