#7D1E9D#7D1E9D

#7D1E9D is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.196 H 315.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7D1E9D
RGBrgb(125, 30, 157)
HSLhsl(285, 68%, 37%)
HSVhsv(285, 81%, 62%)
CMYKcmyk(20.4%, 80.9%, 0%, 38.4%)
CIE-LABlab(33.40, 57.31, -48.61)
CIE-LCHlch(33.40, 75.15, 319.69°)
OKLaboklab(45.17% 0.1399 -0.1372)
OKLCHoklch(45.17% 0.196 315.5)
XYZxyz(15.0065, 7.7234, 32.5920)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E9D #3E9D1E
analogous
#3E1E9D #7D1E9D #9D1E7E
triadic
#7D1E9D #9D7D1E #1E9D7D
tetradic
#7D1E9D #9D3E1E #3E9D1E #1E7E9D
square
#7D1E9D #9D3E1E #3E9D1E #1E7E9D
split-complementary
#7D1E9D #7E9D1E #1E9D3E
monochromatic
#2B0A36 #54146A #7D1E9D #A628D0 #BC57DF

Accessibility & contrast

On white

8.25
#7D1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1E9D
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1E9D#FFFFFF#000000##FFFFFF
##7D1E9D1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#19519A
Tritanopia (blue-blind)
#7A3C5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d1e9d;
/* rgb */ color: rgb(125, 30, 157);
/* oklch */ color: oklch(45.2% 0.196 315.5);
Tailwind
colors: {
  custom: {
    50: '#a767bb',
    500: '#7d1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e9d;
$custom-light: #a767bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e9d",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 284.882,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45165,
    "c": 0.19595,
    "h": 315.5
  },
  "luminance": 0.07723
}

Semantic roles & 50–950 ramp

primary
#7D1E9D
secondary
#70C254
accent
#EB3D69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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