#7D28A3#7D28A3

#7D28A3 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.191 H 312.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7D28A3
RGBrgb(125, 40, 163)
HSLhsl(281, 61%, 40%)
HSVhsv(281, 75%, 64%)
CMYKcmyk(23.3%, 75.5%, 0%, 36.1%)
CIE-LABlab(35.05, 55.04, -49.58)
CIE-LCHlch(35.05, 74.08, 317.99°)
OKLaboklab(46.46% 0.1301 -0.1401)
OKLCHoklch(46.46% 0.191 312.9)
XYZxyz(15.8259, 8.5224, 35.4545)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28A3 #4EA328
analogous
#3F28A3 #7D28A3 #A3288C
triadic
#7D28A3 #A37D28 #28A37D
tetradic
#7D28A3 #A33F28 #4EA328 #288CA3
square
#7D28A3 #A33F28 #4EA328 #288CA3
split-complementary
#7D28A3 #8CA328 #28A33F
monochromatic
#321041 #571C72 #7D28A3 #A13ACF #B86BDB

Accessibility & contrast

On white

7.77
#7D28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D28A3
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28A3#FFFFFF#000000##FFFFFF
##7D28A31.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#1A54A0
Tritanopia (blue-blind)
#794464
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d28a3;
/* rgb */ color: rgb(125, 40, 163);
/* oklch */ color: oklch(46.5% 0.191 312.9);
Tailwind
colors: {
  custom: {
    50: '#a76bbf',
    500: '#7d28a3',
    950: '#000000',
  },
}
SCSS
$custom: #7d28a3;
$custom-light: #a76bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28a3",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 281.463,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46463,
    "c": 0.19124,
    "h": 312.9
  },
  "luminance": 0.08522
}

Semantic roles & 50–950 ramp

primary
#7D28A3
secondary
#82C166
accent
#E44475
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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