#7D28B7#7D28B7

#7D28B7 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.210 H 306.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7D28B7
RGBrgb(125, 40, 183)
HSLhsl(276, 64%, 44%)
HSVhsv(276, 78%, 72%)
CMYKcmyk(31.7%, 78.1%, 0%, 28.2%)
CIE-LABlab(36.55, 59.35, -59.09)
CIE-LCHlch(36.55, 83.75, 315.13°)
OKLaboklab(47.99% 0.1261 -0.1681)
OKLCHoklch(47.99% 0.21 306.9)
XYZxyz(17.7616, 9.2967, 45.6493)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28B7 #62B728
analogous
#3528B7 #7D28B7 #B728A9
triadic
#7D28B7 #B77D28 #28B77D
tetradic
#7D28B7 #B73528 #62B728 #28A9B7
square
#7D28B7 #B73528 #62B728 #28A9B7
split-complementary
#7D28B7 #A9B728 #28B735
monochromatic
#381253 #5B1D85 #7D28B7 #9C46D6 #B778E1

Accessibility & contrast

On white

7.34
#7D28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7D28B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28B7
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28B7#FFFFFF#000000##FFFFFF
##7D28B71.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#734D6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d28b7;
/* rgb */ color: rgb(125, 40, 183);
/* oklch */ color: oklch(48.0% 0.210 306.9);
Tailwind
colors: {
  custom: {
    50: '#a86cce',
    500: '#7d28b7',
    950: '#000000',
  },
}
SCSS
$custom: #7d28b7;
$custom-light: #a86cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28b7",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 275.664,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47991,
    "c": 0.21014,
    "h": 306.9
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#7D28B7
secondary
#95C972
accent
#E74184
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7D28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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