#7D1E9E#7D1E9E

#7D1E9E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.197 H 315.2°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7D1E9E
RGBrgb(125, 30, 158)
HSLhsl(285, 68%, 37%)
HSVhsv(285, 81%, 62%)
CMYKcmyk(20.9%, 81%, 0%, 38%)
CIE-LABlab(33.47, 57.51, -49.10)
CIE-LCHlch(33.47, 75.62, 319.51°)
OKLaboklab(45.24% 0.1397 -0.1387)
OKLCHoklch(45.24% 0.197 315.2)
XYZxyz(15.0923, 7.7577, 33.0435)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E9E #3F9E1E
analogous
#3D1E9E #7D1E9E #9E1E7F
triadic
#7D1E9E #9E7D1E #1E9E7D
tetradic
#7D1E9E #9E3D1E #3F9E1E #1E7F9E
square
#7D1E9E #9E3D1E #3F9E1E #1E7F9E
split-complementary
#7D1E9E #7F9E1E #1E9E3D
monochromatic
#2C0A37 #54146B #7D1E9E #A628D1 #BC57DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D1E9E#FFFFFF#000000##FFFFFF
##7D1E9E1.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)
#004AA1
Deuteranopia (green-blind)
#17519B
Tritanopia (blue-blind)
#7A3D5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d1e9e;
/* rgb */ color: rgb(125, 30, 158);
/* oklch */ color: oklch(45.2% 0.197 315.2);
Tailwind
colors: {
  custom: {
    50: '#a767bb',
    500: '#7d1e9e',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e9e;
$custom-light: #a767bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e9e",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 284.531,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45239,
    "c": 0.19682,
    "h": 315.2
  },
  "luminance": 0.07757
}

Semantic roles & 50–950 ramp

primary
#7D1E9E
secondary
#71C355
accent
#EB3D6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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