#7D1E9C#7D1E9C

#7D1E9C is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.195 H 315.9°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7D1E9C
RGBrgb(125, 30, 156)
HSLhsl(285, 68%, 36%)
HSVhsv(285, 81%, 61%)
CMYKcmyk(19.9%, 80.8%, 0%, 38.8%)
CIE-LABlab(33.33, 57.11, -48.12)
CIE-LCHlch(33.33, 74.68, 319.88°)
OKLaboklab(45.09% 0.1401 -0.1358)
OKLCHoklch(45.09% 0.195 315.9)
XYZxyz(14.9215, 7.6894, 32.1443)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E9C #3D9C1E
analogous
#3E1E9C #7D1E9C #9C1E7C
triadic
#7D1E9C #9C7D1E #1E9C7D
tetradic
#7D1E9C #9C3E1E #3D9C1E #1E7C9C
square
#7D1E9C #9C3E1E #3D9C1E #1E7C9C
split-complementary
#7D1E9C #7C9C1E #1E9C3E
monochromatic
#2B0A35 #541469 #7D1E9C #A628CF #BD56DE

Accessibility & contrast

On white

8.27
#7D1E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7D1E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1E9C
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1E9C#FFFFFF#000000##FFFFFF
##7D1E9C1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#1B5199
Tritanopia (blue-blind)
#7B3C5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1e9c;
/* rgb */ color: rgb(125, 30, 156);
/* oklch */ color: oklch(45.1% 0.195 315.9);
Tailwind
colors: {
  custom: {
    50: '#a766ba',
    500: '#7d1e9c',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e9c;
$custom-light: #a766ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e9c",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 156
  },
  "hsl": {
    "h": 285.238,
    "s": 67.742,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45091,
    "c": 0.19508,
    "h": 315.9
  },
  "luminance": 0.07689
}

Semantic roles & 50–950 ramp

primary
#7D1E9C
secondary
#6FC254
accent
#EB3D68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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