#28942C#28942C

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

Color values

HEX#28942C
RGBrgb(40, 148, 44)
HSLhsl(122, 57%, 37%)
HSVhsv(122, 73%, 58%)
CMYKcmyk(73%, 0%, 70.3%, 42%)
CIE-LABlab(53.83, -50.71, 44.43)
CIE-LCHlch(53.83, 67.42, 138.77°)
OKLaboklab(58.52% -0.1375 0.1019)
OKLCHoklch(58.52% 0.171 143.5)
XYZxyz(11.9189, 21.8115, 5.9643)
Luminance0.2181 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28942C #942890
analogous
#5A9428 #28942C #289462
triadic
#28942C #2C2894 #942C28
tetradic
#28942C #285A94 #942890 #946228
square
#28942C #285A94 #942890 #946228
split-complementary
#28942C #622894 #94285A
monochromatic
#0E340F #1B641E #28942C #35C43A #62D566

Accessibility & contrast

On white

3.92
#28942C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##28942C#FFFFFF#000000##000000
##28942C1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28942c;
/* rgb */ color: rgb(40, 148, 44);
/* oklch */ color: oklch(58.5% 0.171 143.5);
Tailwind
colors: {
  custom: {
    50: '#73b46b',
    500: '#28942c',
    950: '#000000',
  },
}
SCSS
$custom: #28942c;
$custom-light: #73b46b;
$custom-dark: #000000;
JSON
{
  "hex": "#28942c",
  "rgb": {
    "r": 40,
    "g": 148,
    "b": 44
  },
  "hsl": {
    "h": 122.222,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.58524,
    "c": 0.17111,
    "h": 143.5
  },
  "luminance": 0.21813
}

Semantic roles & 50–950 ramp

primary
#28942C
secondary
#BA5EB7
accent
#47DBE1
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #28942C

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

Preview Lab → · Contrast checker → · Palette generator →

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