#7C28A4#7C28A4

#7C28A4 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.192 H 312.1°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7C28A4
RGBrgb(124, 40, 164)
HSLhsl(281, 61%, 40%)
HSVhsv(281, 76%, 64%)
CMYKcmyk(24.4%, 75.6%, 0%, 35.7%)
CIE-LABlab(34.97, 55.05, -50.32)
CIE-LCHlch(34.97, 74.58, 317.57°)
OKLaboklab(46.4% 0.1286 -0.1423)
OKLCHoklch(46.4% 0.192 312.1)
XYZxyz(15.7706, 8.4834, 35.9215)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28A4 #50A428
analogous
#3E28A4 #7C28A4 #A4288E
triadic
#7C28A4 #A47C28 #28A47C
tetradic
#7C28A4 #A43E28 #50A428 #288EA4
square
#7C28A4 #A43E28 #50A428 #288EA4
split-complementary
#7C28A4 #8EA428 #28A43E
monochromatic
#321042 #571C73 #7C28A4 #9F3ACF #B76BDB

Accessibility & contrast

On white

7.79
#7C28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7C28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28A4
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28A4#FFFFFF#000000##FFFFFF
##7C28A41.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#1554A1
Tritanopia (blue-blind)
#774564
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c28a4;
/* rgb */ color: rgb(124, 40, 164);
/* oklch */ color: oklch(46.4% 0.192 312.1);
Tailwind
colors: {
  custom: {
    50: '#a66bc0',
    500: '#7c28a4',
    950: '#000000',
  },
}
SCSS
$custom: #7c28a4;
$custom-light: #a66bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28a4",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 280.645,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.464,
    "c": 0.19186,
    "h": 312.1
  },
  "luminance": 0.08483
}

Semantic roles & 50–950 ramp

primary
#7C28A4
secondary
#84C166
accent
#E44478
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C28A4

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

Preview Lab → · Contrast checker → · Palette generator →

#7C28A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva