#7D28A8#7D28A8

#7D28A8 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.8% C 0.196 H 311.3°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7D28A8
RGBrgb(125, 40, 168)
HSLhsl(280, 62%, 41%)
HSVhsv(280, 76%, 66%)
CMYKcmyk(25.6%, 76.2%, 0%, 34.1%)
CIE-LABlab(35.41, 56.10, -52.00)
CIE-LCHlch(35.41, 76.49, 317.17°)
OKLaboklab(46.83% 0.1293 -0.1473)
OKLCHoklch(46.83% 0.196 311.3)
XYZxyz(16.2828, 8.7051, 37.8607)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28A8 #53A828
analogous
#3D28A8 #7D28A8 #A82893
triadic
#7D28A8 #A87D28 #28A87D
tetradic
#7D28A8 #A83D28 #53A828 #2893A8
square
#7D28A8 #A83D28 #53A828 #2893A8
split-complementary
#7D28A8 #93A828 #28A83D
monochromatic
#331045 #581C77 #7D28A8 #9F3DD1 #B76EDC

Accessibility & contrast

On white

7.66
#7D28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7D28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28A8
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28A8#FFFFFF#000000##FFFFFF
##7D28A81.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0E55A5
Tritanopia (blue-blind)
#774667
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d28a8;
/* rgb */ color: rgb(125, 40, 168);
/* oklch */ color: oklch(46.8% 0.196 311.3);
Tailwind
colors: {
  custom: {
    50: '#a76bc3',
    500: '#7d28a8',
    950: '#000000',
  },
}
SCSS
$custom: #7d28a8;
$custom-light: #a76bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28a8",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 279.844,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46833,
    "c": 0.19595,
    "h": 311.3
  },
  "luminance": 0.08705
}

Semantic roles & 50–950 ramp

primary
#7D28A8
secondary
#87C369
accent
#E54379
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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