#7D1CA1#7D1CA1

#7D1CA1 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.3% C 0.201 H 314.3°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7D1CA1
RGBrgb(125, 28, 161)
HSLhsl(284, 70%, 37%)
HSVhsv(284, 83%, 63%)
CMYKcmyk(22.4%, 82.6%, 0%, 36.9%)
CIE-LABlab(33.49, 58.71, -50.90)
CIE-LCHlch(33.49, 77.70, 319.08°)
OKLaboklab(45.32% 0.1406 -0.1439)
OKLCHoklch(45.32% 0.201 314.3)
XYZxyz(15.3046, 7.7642, 34.4038)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1CA1 #40A11C
analogous
#3A1CA1 #7D1CA1 #A11C83
triadic
#7D1CA1 #A17D1C #1CA17D
tetradic
#7D1CA1 #A13A1C #40A11C #1C83A1
square
#7D1CA1 #A13A1C #40A11C #1C83A1
split-complementary
#7D1CA1 #83A11C #1CA13A
monochromatic
#2C0A39 #55136D #7D1CA1 #A525D5 #BC56E2

Accessibility & contrast

On white

8.23
#7D1CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7D1CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1CA1
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1CA1#FFFFFF#000000##FFFFFF
##7D1CA11.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#0D519E
Tritanopia (blue-blind)
#793D60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d1ca1;
/* rgb */ color: rgb(125, 28, 161);
/* oklch */ color: oklch(45.3% 0.201 314.3);
Tailwind
colors: {
  custom: {
    50: '#a766be',
    500: '#7d1ca1',
    950: '#000000',
  },
}
SCSS
$custom: #7d1ca1;
$custom-light: #a766be;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1ca1",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 283.759,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45319,
    "c": 0.20119,
    "h": 314.3
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#7D1CA1
secondary
#73C554
accent
#ED3B6B
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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