#28842F#28842F

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

Color values

HEX#28842F
RGBrgb(40, 132, 47)
HSLhsl(125, 53%, 34%)
HSVhsv(125, 70%, 52%)
CMYKcmyk(69.7%, 0%, 64.4%, 48.2%)
CIE-LABlab(48.46, -44.67, 37.24)
CIE-LCHlch(48.46, 58.16, 140.19°)
OKLaboklab(54.08% -0.1209 0.087)
OKLCHoklch(54.08% 0.149 144.3)
XYZxyz(9.6388, 17.1579, 5.4926)
Luminance0.1716 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28842F #84287D
analogous
#4F8428 #28842F #28845D
triadic
#28842F #2F2884 #842F28
tetradic
#28842F #284F84 #84287D #845D28
square
#28842F #284F84 #84287D #845D28
split-complementary
#28842F #5D2884 #84284F
monochromatic
#0C260E #1A551E #28842F #36B340 #5ACD62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28842F#FFFFFF#000000##FFFFFF
##28842F1.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)
#867825
Deuteranopia (green-blind)
#7C7036
Tritanopia (blue-blind)
#0D8072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #28842f;
/* rgb */ color: rgb(40, 132, 47);
/* oklch */ color: oklch(54.1% 0.149 144.3);
Tailwind
colors: {
  custom: {
    50: '#6fa96b',
    500: '#28842f',
    950: '#000000',
  },
}
SCSS
$custom: #28842f;
$custom-light: #6fa96b;
$custom-dark: #000000;
JSON
{
  "hex": "#28842f",
  "rgb": {
    "r": 40,
    "g": 132,
    "b": 47
  },
  "hsl": {
    "h": 124.565,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.54084,
    "c": 0.14898,
    "h": 144.3
  },
  "luminance": 0.17159
}

Semantic roles & 50–950 ramp

primary
#28842F
secondary
#B256AB
accent
#4BD2DD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #28842F

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

Preview Lab → · Contrast checker → · Palette generator →

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