#28842E#28842E

#28842E is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.1% C 0.150 H 144.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#28842E
RGBrgb(40, 132, 46)
HSLhsl(124, 53%, 34%)
HSVhsv(124, 70%, 52%)
CMYKcmyk(69.7%, 0%, 65.2%, 48.2%)
CIE-LABlab(48.45, -44.79, 37.69)
CIE-LCHlch(48.45, 58.54, 139.92°)
OKLaboklab(54.07% -0.1213 0.0879)
OKLCHoklch(54.07% 0.15 144.1)
XYZxyz(9.6189, 17.1499, 5.3876)
Luminance0.1715 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28842E #84287E
analogous
#508428 #28842E #28845C
triadic
#28842E #2E2884 #842E28
tetradic
#28842E #285084 #84287E #845C28
square
#28842E #285084 #84287E #845C28
split-complementary
#28842E #5C2884 #842850
monochromatic
#0C260D #1A551E #28842E #36B33E #5ACD61

Accessibility & contrast

On white

4.74
#28842E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#28842E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28842E
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28842E#FFFFFF#000000##FFFFFF
##28842E1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877824
Deuteranopia (green-blind)
#7C7035
Tritanopia (blue-blind)
#0D8072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #28842e;
/* rgb */ color: rgb(40, 132, 46);
/* oklch */ color: oklch(54.1% 0.150 144.1);
Tailwind
colors: {
  custom: {
    50: '#6fa96a',
    500: '#28842e',
    950: '#000000',
  },
}
SCSS
$custom: #28842e;
$custom-light: #6fa96a;
$custom-dark: #000000;
JSON
{
  "hex": "#28842e",
  "rgb": {
    "r": 40,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 123.913,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.54072,
    "c": 0.14979,
    "h": 144.1
  },
  "luminance": 0.17151
}

Semantic roles & 50–950 ramp

primary
#28842E
secondary
#B256AC
accent
#4BD3DD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #28842E

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

Preview Lab → · Contrast checker → · Palette generator →

#28842E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva