#28842A#28842A

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

Color values

HEX#28842A
RGBrgb(40, 132, 42)
HSLhsl(121, 53%, 34%)
HSVhsv(121, 70%, 52%)
CMYKcmyk(69.7%, 0%, 68.2%, 48.2%)
CIE-LABlab(48.41, -45.24, 39.47)
CIE-LCHlch(48.41, 60.04, 138.89°)
OKLaboklab(54.03% -0.1227 0.0912)
OKLCHoklch(54.03% 0.153 143.4)
XYZxyz(9.5437, 17.1198, 4.9915)
Luminance0.1712 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28842A #842882
analogous
#548428 #28842A #288458
triadic
#28842A #2A2884 #842A28
tetradic
#28842A #285484 #842882 #845828
square
#28842A #285484 #842882 #845828
split-complementary
#28842A #582884 #842854
monochromatic
#0C260C #1A551B #28842A #36B339 #5ACD5C

Accessibility & contrast

On white

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

On black

4.42
#28842A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##28842A#FFFFFF#000000##FFFFFF
##28842A1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87781E
Deuteranopia (green-blind)
#7C7032
Tritanopia (blue-blind)
#0F8071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #28842a;
/* rgb */ color: rgb(40, 132, 42);
/* oklch */ color: oklch(54.0% 0.153 143.4);
Tailwind
colors: {
  custom: {
    50: '#70a968',
    500: '#28842a',
    950: '#000000',
  },
}
SCSS
$custom: #28842a;
$custom-light: #70a968;
$custom-dark: #000000;
JSON
{
  "hex": "#28842a",
  "rgb": {
    "r": 40,
    "g": 132,
    "b": 42
  },
  "hsl": {
    "h": 121.304,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.54029,
    "c": 0.1529,
    "h": 143.4
  },
  "luminance": 0.17121
}

Semantic roles & 50–950 ramp

primary
#28842A
secondary
#B256B0
accent
#4BDADD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #28842A

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

Preview Lab → · Contrast checker → · Palette generator →

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