#28942D#28942D

#28942D is a mid, vivid green. Relative luminance 0.218; OKLCH L 58.5% C 0.170 H 143.6°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#28942D
RGBrgb(40, 148, 45)
HSLhsl(123, 57%, 37%)
HSVhsv(123, 73%, 58%)
CMYKcmyk(73%, 0%, 69.6%, 42%)
CIE-LABlab(53.83, -50.61, 44.03)
CIE-LCHlch(53.83, 67.08, 138.98°)
OKLaboklab(58.53% -0.1371 0.1011)
OKLCHoklch(58.53% 0.17 143.6)
XYZxyz(11.9379, 21.8191, 6.0645)
Luminance0.2182 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28942D #94288F
analogous
#599428 #28942D #289463
triadic
#28942D #2D2894 #942D28
tetradic
#28942D #285994 #94288F #946328
square
#28942D #285994 #94288F #946328
split-complementary
#28942D #632894 #942859
monochromatic
#0E3410 #1B641E #28942D #35C43C #62D567

Accessibility & contrast

On white

3.91
#28942D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#28942D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28942D
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28942D#FFFFFF#000000##000000
##28942D1.003.915.365.36
#FFFFFF3.911.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861E
Deuteranopia (green-blind)
#8B7D37
Tritanopia (blue-blind)
#00907F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #28942d;
/* rgb */ color: rgb(40, 148, 45);
/* oklch */ color: oklch(58.5% 0.170 143.6);
Tailwind
colors: {
  custom: {
    50: '#73b46b',
    500: '#28942d',
    950: '#000000',
  },
}
SCSS
$custom: #28942d;
$custom-light: #73b46b;
$custom-dark: #000000;
JSON
{
  "hex": "#28942d",
  "rgb": {
    "r": 40,
    "g": 148,
    "b": 45
  },
  "hsl": {
    "h": 122.778,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.58533,
    "c": 0.17041,
    "h": 143.6
  },
  "luminance": 0.2182
}

Semantic roles & 50–950 ramp

primary
#28942D
secondary
#BA5EB6
accent
#47DAE1
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #28942D

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

Preview Lab → · Contrast checker → · Palette generator →

#28942D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva