#7D28BD#7D28BD

#7D28BD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.216 H 305.3°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7D28BD
RGBrgb(125, 40, 189)
HSLhsl(274, 65%, 45%)
HSVhsv(274, 79%, 74%)
CMYKcmyk(33.9%, 78.8%, 0%, 25.9%)
CIE-LABlab(37.03, 60.68, -61.85)
CIE-LCHlch(37.03, 86.65, 314.45°)
OKLaboklab(48.47% 0.1246 -0.1762)
OKLCHoklch(48.47% 0.216 305.3)
XYZxyz(18.3995, 9.5518, 49.0086)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28BD #68BD28
analogous
#3228BD #7D28BD #BD28B3
triadic
#7D28BD #BD7D28 #28BD7D
tetradic
#7D28BD #BD3228 #68BD28 #28B3BD
square
#7D28BD #BD3228 #68BD28 #28B3BD
split-complementary
#7D28BD #B3BD28 #28BD32
monochromatic
#3A1358 #5C1D8A #7D28BD #9B4AD9 #B77CE3

Accessibility & contrast

On white

7.22
#7D28BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7D28BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28BD
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28BD#FFFFFF#000000##FFFFFF
##7D28BD1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#714F73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7d28bd;
/* rgb */ color: rgb(125, 40, 189);
/* oklch */ color: oklch(48.5% 0.216 305.3);
Tailwind
colors: {
  custom: {
    50: '#a96cd2',
    500: '#7d28bd',
    950: '#000000',
  },
}
SCSS
$custom: #7d28bd;
$custom-light: #a96cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28bd",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 274.228,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48473,
    "c": 0.21583,
    "h": 305.3
  },
  "luminance": 0.09552
}

Semantic roles & 50–950 ramp

primary
#7D28BD
secondary
#9ACB75
accent
#E84088
background
#FAF6FD
surface
#F5ECFA
border
#CFC7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7D28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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