#7D28A4#7D28A4

#7D28A4 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.192 H 312.5°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7D28A4
RGBrgb(125, 40, 164)
HSLhsl(281, 61%, 40%)
HSVhsv(281, 76%, 64%)
CMYKcmyk(23.8%, 75.6%, 0%, 35.7%)
CIE-LABlab(35.12, 55.25, -50.07)
CIE-LCHlch(35.12, 74.56, 317.82°)
OKLaboklab(46.54% 0.13 -0.1416)
OKLCHoklch(46.54% 0.192 312.5)
XYZxyz(15.9159, 8.5584, 35.9283)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28A4 #4FA428
analogous
#3F28A4 #7D28A4 #A4288D
triadic
#7D28A4 #A47D28 #28A47D
tetradic
#7D28A4 #A43F28 #4FA428 #288DA4
square
#7D28A4 #A43F28 #4FA428 #288DA4
split-complementary
#7D28A4 #8DA428 #28A43F
monochromatic
#321042 #571C73 #7D28A4 #A03ACF #B86BDB

Accessibility & contrast

On white

7.74
#7D28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7D28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28A4
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28A4#FFFFFF#000000##FFFFFF
##7D28A41.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#1854A1
Tritanopia (blue-blind)
#784464
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d28a4;
/* rgb */ color: rgb(125, 40, 164);
/* oklch */ color: oklch(46.5% 0.192 312.5);
Tailwind
colors: {
  custom: {
    50: '#a76bc0',
    500: '#7d28a4',
    950: '#000000',
  },
}
SCSS
$custom: #7d28a4;
$custom-light: #a76bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28a4",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 281.129,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.46536,
    "c": 0.19218,
    "h": 312.5
  },
  "luminance": 0.08558
}

Semantic roles & 50–950 ramp

primary
#7D28A4
secondary
#83C166
accent
#E44476
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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