#7D1CA7#7D1CA7

#7D1CA7 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.8% C 0.206 H 312.4°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7D1CA7
RGBrgb(125, 28, 167)
HSLhsl(282, 71%, 38%)
HSVhsv(282, 83%, 65%)
CMYKcmyk(25.1%, 83.2%, 0%, 34.5%)
CIE-LABlab(33.94, 59.92, -53.78)
CIE-LCHlch(33.94, 80.51, 318.09°)
OKLaboklab(45.78% 0.1392 -0.1524)
OKLCHoklch(45.78% 0.206 312.4)
XYZxyz(15.8465, 7.9810, 37.2575)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1CA7 #46A71C
analogous
#381CA7 #7D1CA7 #A71C8B
triadic
#7D1CA7 #A77D1C #1CA77D
tetradic
#7D1CA7 #A7381C #46A71C #1C8BA7
square
#7D1CA7 #A7381C #46A71C #1C8BA7
split-complementary
#7D1CA7 #8BA71C #1CA738
monochromatic
#2F0A3E #561373 #7D1CA7 #A426DB #BA5AE3

Accessibility & contrast

On white

8.09
#7D1CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7D1CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1CA7
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1CA7#FFFFFF#000000##FFFFFF
##7D1CA71.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#784064
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d1ca7;
/* rgb */ color: rgb(125, 28, 167);
/* oklch */ color: oklch(45.8% 0.206 312.4);
Tailwind
colors: {
  custom: {
    50: '#a866c2',
    500: '#7d1ca7',
    950: '#000000',
  },
}
SCSS
$custom: #7d1ca7;
$custom-light: #a866c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1ca7",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 281.871,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4578,
    "c": 0.20639,
    "h": 312.4
  },
  "luminance": 0.07981
}

Semantic roles & 50–950 ramp

primary
#7D1CA7
secondary
#79C758
accent
#EE3A70
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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