#28862F#28862F

#28862F is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.6% C 0.152 H 144.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#28862F
RGBrgb(40, 134, 47)
HSLhsl(124, 54%, 34%)
HSVhsv(124, 70%, 53%)
CMYKcmyk(70.1%, 0%, 64.9%, 47.5%)
CIE-LABlab(49.14, -45.41, 38.00)
CIE-LCHlch(49.14, 59.21, 140.08°)
OKLaboklab(54.65% -0.1229 0.0886)
OKLCHoklch(54.65% 0.152 144.2)
XYZxyz(9.9126, 17.7055, 5.5839)
Luminance0.1771 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28862F #86287F
analogous
#508628 #28862F #28865E
triadic
#28862F #2F2886 #862F28
tetradic
#28862F #285086 #86287F #865E28
square
#28862F #285086 #86287F #865E28
split-complementary
#28862F #5E2886 #862850
monochromatic
#0C280E #1A571E #28862F #36B540 #5BCE63

Accessibility & contrast

On white

4.62
#28862F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#28862F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #28862F
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28862F#FFFFFF#000000##FFFFFF
##28862F1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897925
Deuteranopia (green-blind)
#7D7236
Tritanopia (blue-blind)
#0B8274
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #28862f;
/* rgb */ color: rgb(40, 134, 47);
/* oklch */ color: oklch(54.6% 0.152 144.2);
Tailwind
colors: {
  custom: {
    50: '#70aa6b',
    500: '#28862f',
    950: '#000000',
  },
}
SCSS
$custom: #28862f;
$custom-light: #70aa6b;
$custom-dark: #000000;
JSON
{
  "hex": "#28862f",
  "rgb": {
    "r": 40,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 124.468,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.54646,
    "c": 0.15156,
    "h": 144.2
  },
  "luminance": 0.17707
}

Semantic roles & 50–950 ramp

primary
#28862F
secondary
#B357AC
accent
#4AD2DD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #28862F

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

Preview Lab → · Contrast checker → · Palette generator →

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