#28A745#28A745

#28A745 is a light, vivid green. Relative luminance 0.285; OKLCH L 64.0% C 0.175 H 146.7°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#28A745
RGBrgb(40, 167, 69)
HSLhsl(134, 61%, 41%)
HSVhsv(134, 76%, 65%)
CMYKcmyk(76%, 0%, 58.7%, 34.5%)
CIE-LABlab(60.35, -54.38, 40.51)
CIE-LCHlch(60.35, 67.81, 143.32°)
OKLaboklab(64.01% -0.1464 0.096)
OKLCHoklch(64.01% 0.175 146.7)
XYZxyz(15.7668, 28.5164, 10.3023)
Luminance0.2852 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28A745 #A7288A
analogous
#4AA728 #28A745 #28A784
triadic
#28A745 #4528A7 #A74528
tetradic
#28A745 #284AA7 #A7288A #A78428
square
#28A745 #284AA7 #A7288A #A78428
split-complementary
#28A745 #8428A7 #A7284A
monochromatic
#10441C #1C7631 #28A745 #3CD05E #6DDC87

Accessibility & contrast

On white

3.13
#28A745 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#28A745 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28A745
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28A745#FFFFFF#000000##000000
##28A7451.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9983B
Deuteranopia (green-blind)
#9B8E4D
Tritanopia (blue-blind)
#00A392
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #28a745;
/* rgb */ color: rgb(40, 167, 69);
/* oklch */ color: oklch(64.0% 0.175 146.7);
Tailwind
colors: {
  custom: {
    50: '#77c27c',
    500: '#28a745',
    950: '#000000',
  },
}
SCSS
$custom: #28a745;
$custom-light: #77c27c;
$custom-dark: #000000;
JSON
{
  "hex": "#28a745",
  "rgb": {
    "r": 40,
    "g": 167,
    "b": 69
  },
  "hsl": {
    "h": 133.701,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.64013,
    "c": 0.17507,
    "h": 146.7
  },
  "luminance": 0.28518
}

Semantic roles & 50–950 ramp

primary
#28A745
secondary
#C368AE
accent
#43C0E4
background
#F7FCF7
surface
#EEF8EE
border
#C9D1C9
text
#0A130A
muted
#7C827C

Preview Lab

Preview with #28A745

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

Preview Lab → · Contrast checker → · Palette generator →

#28A745 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva