#7D28A5#7D28A5

#7D28A5 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.193 H 312.2°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7D28A5
RGBrgb(125, 40, 165)
HSLhsl(281, 61%, 40%)
HSVhsv(281, 76%, 65%)
CMYKcmyk(24.2%, 75.8%, 0%, 35.3%)
CIE-LABlab(35.19, 55.46, -50.55)
CIE-LCHlch(35.19, 75.04, 317.65°)
OKLaboklab(46.61% 0.1298 -0.143)
OKLCHoklch(46.61% 0.193 312.2)
XYZxyz(16.0065, 8.5946, 36.4058)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28A5 #50A528
analogous
#3E28A5 #7D28A5 #A5288E
triadic
#7D28A5 #A57D28 #28A57D
tetradic
#7D28A5 #A53E28 #50A528 #288EA5
square
#7D28A5 #A53E28 #50A528 #288EA5
split-complementary
#7D28A5 #8EA528 #28A53E
monochromatic
#321042 #581C74 #7D28A5 #A03BCF #B86CDB

Accessibility & contrast

On white

7.72
#7D28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7D28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28A5
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28A5#FFFFFF#000000##FFFFFF
##7D28A51.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#1654A2
Tritanopia (blue-blind)
#784565
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d28a5;
/* rgb */ color: rgb(125, 40, 165);
/* oklch */ color: oklch(46.6% 0.193 312.2);
Tailwind
colors: {
  custom: {
    50: '#a76bc0',
    500: '#7d28a5',
    950: '#000000',
  },
}
SCSS
$custom: #7d28a5;
$custom-light: #a76bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28a5",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 280.8,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4661,
    "c": 0.19312,
    "h": 312.2
  },
  "luminance": 0.08594
}

Semantic roles & 50–950 ramp

primary
#7D28A5
secondary
#84C267
accent
#E44477
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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