#28842C#28842C

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

Color values

HEX#28842C
RGBrgb(40, 132, 44)
HSLhsl(123, 53%, 34%)
HSVhsv(123, 70%, 52%)
CMYKcmyk(69.7%, 0%, 66.7%, 48.2%)
CIE-LABlab(48.43, -45.02, 38.59)
CIE-LCHlch(48.43, 59.30, 139.39°)
OKLaboklab(54.05% -0.122 0.0896)
OKLCHoklch(54.05% 0.151 143.7)
XYZxyz(9.5804, 17.1345, 5.1848)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28842C #842880
analogous
#528428 #28842C #28845A
triadic
#28842C #2C2884 #842C28
tetradic
#28842C #285284 #842880 #845A28
square
#28842C #285284 #842880 #845A28
split-complementary
#28842C #5A2884 #842852
monochromatic
#0C260D #1A551C #28842C #36B33C #5ACD5F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28842C#FFFFFF#000000##FFFFFF
##28842C1.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)
#877821
Deuteranopia (green-blind)
#7C7034
Tritanopia (blue-blind)
#0E8072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #28842c;
/* rgb */ color: rgb(40, 132, 44);
/* oklch */ color: oklch(54.0% 0.151 143.7);
Tailwind
colors: {
  custom: {
    50: '#6fa969',
    500: '#28842c',
    950: '#000000',
  },
}
SCSS
$custom: #28842c;
$custom-light: #6fa969;
$custom-dark: #000000;
JSON
{
  "hex": "#28842c",
  "rgb": {
    "r": 40,
    "g": 132,
    "b": 44
  },
  "hsl": {
    "h": 122.609,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5405,
    "c": 0.15137,
    "h": 143.7
  },
  "luminance": 0.17135
}

Semantic roles & 50–950 ramp

primary
#28842C
secondary
#B256AE
accent
#4BD7DD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #28842C

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

Preview Lab → · Contrast checker → · Palette generator →

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