#7D30A2#7D30A2

#7D30A2 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.181 H 312.5°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7D30A2
RGBrgb(125, 48, 162)
HSLhsl(281, 54%, 41%)
HSVhsv(281, 70%, 64%)
CMYKcmyk(22.8%, 70.4%, 0%, 36.5%)
CIE-LABlab(36.14, 51.52, -47.21)
CIE-LCHlch(36.14, 69.88, 317.50°)
OKLaboklab(47.22% 0.1221 -0.1332)
OKLCHoklch(47.22% 0.181 312.5)
XYZxyz(16.0348, 9.0830, 35.0839)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D30A2 #55A230
analogous
#4430A2 #7D30A2 #A2308E
triadic
#7D30A2 #A27D30 #30A27D
tetradic
#7D30A2 #A24430 #55A230 #308EA2
square
#7D30A2 #A24430 #55A230 #308EA2
split-complementary
#7D30A2 #8EA230 #30A244
monochromatic
#341444 #592273 #7D30A2 #9E47C8 #B776D6

Accessibility & contrast

On white

7.46
#7D30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7D30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D30A2
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D30A2#FFFFFF#000000##FFFFFF
##7D30A21.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#25579F
Tritanopia (blue-blind)
#794865
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d30a2;
/* rgb */ color: rgb(125, 48, 162);
/* oklch */ color: oklch(47.2% 0.181 312.5);
Tailwind
colors: {
  custom: {
    50: '#a66fbe',
    500: '#7d30a2',
    950: '#000000',
  },
}
SCSS
$custom: #7d30a2;
$custom-light: #a66fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7d30a2",
  "rgb": {
    "r": 125,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 280.526,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47219,
    "c": 0.18073,
    "h": 312.5
  },
  "luminance": 0.09083
}

Semantic roles & 50–950 ramp

primary
#7D30A2
secondary
#89BE6F
accent
#DE4A7A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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