#7D28B9#7D28B9

#7D28B9 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.212 H 306.3°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7D28B9
RGBrgb(125, 40, 185)
HSLhsl(275, 64%, 44%)
HSVhsv(275, 78%, 73%)
CMYKcmyk(32.4%, 78.4%, 0%, 27.5%)
CIE-LABlab(36.71, 59.79, -60.01)
CIE-LCHlch(36.71, 84.72, 314.90°)
OKLaboklab(48.15% 0.1256 -0.1708)
OKLCHoklch(48.15% 0.212 306.3)
XYZxyz(17.9713, 9.3805, 46.7534)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28B9 #64B928
analogous
#3428B9 #7D28B9 #B928AD
triadic
#7D28B9 #B97D28 #28B97D
tetradic
#7D28B9 #B93428 #64B928 #28ADB9
square
#7D28B9 #B93428 #64B928 #28ADB9
split-complementary
#7D28B9 #ADB928 #28B934
monochromatic
#391254 #5B1D87 #7D28B9 #9C47D7 #B779E2

Accessibility & contrast

On white

7.30
#7D28B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7D28B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28B9
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28B9#FFFFFF#000000##FFFFFF
##7D28B91.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#724E70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d28b9;
/* rgb */ color: rgb(125, 40, 185);
/* oklch */ color: oklch(48.1% 0.212 306.3);
Tailwind
colors: {
  custom: {
    50: '#a86ccf',
    500: '#7d28b9',
    950: '#000000',
  },
}
SCSS
$custom: #7d28b9;
$custom-light: #a86ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28b9",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 275.172,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4815,
    "c": 0.21203,
    "h": 306.3
  },
  "luminance": 0.0938
}

Semantic roles & 50–950 ramp

primary
#7D28B9
secondary
#97CA73
accent
#E74085
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7D28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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