#7D28C5#7D28C5

#7D28C5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.1% C 0.223 H 303.2°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#7D28C5
RGBrgb(125, 40, 197)
HSLhsl(272, 66%, 46%)
HSVhsv(272, 80%, 77%)
CMYKcmyk(36.5%, 79.7%, 0%, 22.7%)
CIE-LABlab(37.68, 62.47, -65.48)
CIE-LCHlch(37.68, 90.50, 313.65°)
OKLaboklab(49.13% 0.1225 -0.1868)
OKLCHoklch(49.13% 0.223 303.2)
XYZxyz(19.2919, 9.9088, 53.7087)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28C5 #70C528
analogous
#2E28C5 #7D28C5 #C528BF
triadic
#7D28C5 #C57D28 #28C57D
tetradic
#7D28C5 #C52E28 #70C528 #28BFC5
square
#7D28C5 #C52E28 #70C528 #28BFC5
split-complementary
#7D28C5 #BFC528 #28C52E
monochromatic
#3C135F #5D1E92 #7D28C5 #9B4FDB #B882E6

Accessibility & contrast

On white

7.04
#7D28C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7D28C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28C5
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28C5#FFFFFF#000000##FFFFFF
##7D28C51.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#6E5377
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7d28c5;
/* rgb */ color: rgb(125, 40, 197);
/* oklch */ color: oklch(49.1% 0.223 303.2);
Tailwind
colors: {
  custom: {
    50: '#a96dd8',
    500: '#7d28c5',
    950: '#000000',
  },
}
SCSS
$custom: #7d28c5;
$custom-light: #a96dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28c5",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 272.484,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4913,
    "c": 0.22342,
    "h": 303.2
  },
  "luminance": 0.09909
}

Semantic roles & 50–950 ramp

primary
#7D28C5
secondary
#A1CE7A
accent
#E93F8D
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110815
muted
#807A83

Preview Lab

Preview with #7D28C5

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

Preview Lab → · Contrast checker → · Palette generator →

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