#28842B#28842B

#28842B is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.0% C 0.152 H 143.6°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#28842B
RGBrgb(40, 132, 43)
HSLhsl(122, 53%, 34%)
HSVhsv(122, 70%, 52%)
CMYKcmyk(69.7%, 0%, 67.4%, 48.2%)
CIE-LABlab(48.42, -45.13, 39.04)
CIE-LCHlch(48.42, 59.67, 139.14°)
OKLaboklab(54.04% -0.1224 0.0904)
OKLCHoklch(54.04% 0.152 143.6)
XYZxyz(9.5618, 17.1271, 5.0870)
Luminance0.1713 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28842B #842881
analogous
#538428 #28842B #288459
triadic
#28842B #2B2884 #842B28
tetradic
#28842B #285384 #842881 #845928
square
#28842B #285384 #842881 #845928
split-complementary
#28842B #592884 #842853
monochromatic
#0C260C #1A551C #28842B #36B33A #5ACD5D

Accessibility & contrast

On white

4.75
#28842B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #28842B
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28842B#FFFFFF#000000##FFFFFF
##28842B1.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877820
Deuteranopia (green-blind)
#7C7033
Tritanopia (blue-blind)
#0F8072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #28842b;
/* rgb */ color: rgb(40, 132, 43);
/* oklch */ color: oklch(54.0% 0.152 143.6);
Tailwind
colors: {
  custom: {
    50: '#6fa969',
    500: '#28842b',
    950: '#000000',
  },
}
SCSS
$custom: #28842b;
$custom-light: #6fa969;
$custom-dark: #000000;
JSON
{
  "hex": "#28842b",
  "rgb": {
    "r": 40,
    "g": 132,
    "b": 43
  },
  "hsl": {
    "h": 121.957,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5404,
    "c": 0.15214,
    "h": 143.6
  },
  "luminance": 0.17128
}

Semantic roles & 50–950 ramp

primary
#28842B
secondary
#B256AF
accent
#4BD8DD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #28842B

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

Preview Lab → · Contrast checker → · Palette generator →

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