#7D1E9B#7D1E9B

#7D1E9B is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.194 H 316.2°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7D1E9B
RGBrgb(125, 30, 155)
HSLhsl(286, 68%, 36%)
HSVhsv(286, 81%, 61%)
CMYKcmyk(19.4%, 80.6%, 0%, 39.2%)
CIE-LABlab(33.26, 56.91, -47.63)
CIE-LCHlch(33.26, 74.22, 320.07°)
OKLaboklab(45.02% 0.1402 -0.1344)
OKLCHoklch(45.02% 0.194 316.2)
XYZxyz(14.8372, 7.6557, 31.7001)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E9B #3C9B1E
analogous
#3F1E9B #7D1E9B #9B1E7B
triadic
#7D1E9B #9B7D1E #1E9B7D
tetradic
#7D1E9B #9B3F1E #3C9B1E #1E7B9B
square
#7D1E9B #9B3F1E #3C9B1E #1E7B9B
split-complementary
#7D1E9B #7B9B1E #1E9B3F
monochromatic
#2A0A34 #541468 #7D1E9B #A628CE #BD55DE

Accessibility & contrast

On white

8.30
#7D1E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7D1E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1E9B
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1E9B#FFFFFF#000000##FFFFFF
##7D1E9B1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#1C5198
Tritanopia (blue-blind)
#7B3B5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1e9b;
/* rgb */ color: rgb(125, 30, 155);
/* oklch */ color: oklch(45.0% 0.194 316.2);
Tailwind
colors: {
  custom: {
    50: '#a766b9',
    500: '#7d1e9b',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e9b;
$custom-light: #a766b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e9b",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 285.6,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45017,
    "c": 0.19421,
    "h": 316.2
  },
  "luminance": 0.07655
}

Semantic roles & 50–950 ramp

primary
#7D1E9B
secondary
#6EC253
accent
#EA3D67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D1E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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