#7D28BB#7D28BB

#7D28BB is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.214 H 305.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7D28BB
RGBrgb(125, 40, 187)
HSLhsl(275, 65%, 45%)
HSVhsv(275, 79%, 73%)
CMYKcmyk(33.2%, 78.6%, 0%, 26.7%)
CIE-LABlab(36.87, 60.24, -60.93)
CIE-LCHlch(36.87, 85.68, 314.67°)
OKLaboklab(48.31% 0.1252 -0.1735)
OKLCHoklch(48.31% 0.214 305.8)
XYZxyz(18.1839, 9.4656, 47.8732)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28BB #66BB28
analogous
#3428BB #7D28BB #BB28B0
triadic
#7D28BB #BB7D28 #28BB7D
tetradic
#7D28BB #BB3428 #66BB28 #28B0BB
square
#7D28BB #BB3428 #66BB28 #28B0BB
split-complementary
#7D28BB #B0BB28 #28BB34
monochromatic
#3A1256 #5B1D89 #7D28BB #9B48D8 #B77BE3

Accessibility & contrast

On white

7.26
#7D28BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7D28BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28BB
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28BB#FFFFFF#000000##FFFFFF
##7D28BB1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#724E71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7d28bb;
/* rgb */ color: rgb(125, 40, 187);
/* oklch */ color: oklch(48.3% 0.214 305.8);
Tailwind
colors: {
  custom: {
    50: '#a86cd0',
    500: '#7d28bb',
    950: '#000000',
  },
}
SCSS
$custom: #7d28bb;
$custom-light: #a86cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28bb",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 274.694,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48311,
    "c": 0.21394,
    "h": 305.8
  },
  "luminance": 0.09465
}

Semantic roles & 50–950 ramp

primary
#7D28BB
secondary
#99CB74
accent
#E84087
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7D28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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