#7E1D9F#7E1D9F

#7E1D9F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.4% C 0.199 H 315.4°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7E1D9F
RGBrgb(126, 29, 159)
HSLhsl(285, 69%, 37%)
HSVhsv(285, 82%, 62%)
CMYKcmyk(20.8%, 81.8%, 0%, 37.6%)
CIE-LABlab(33.60, 58.20, -49.50)
CIE-LCHlch(33.60, 76.40, 319.62°)
OKLaboklab(45.38% 0.1415 -0.1398)
OKLCHoklch(45.38% 0.199 315.4)
XYZxyz(15.3005, 7.8181, 33.4973)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D9F #3E9F1D
analogous
#3D1D9F #7E1D9F #9F1D7F
triadic
#7E1D9F #9F7E1D #1D9F7E
tetradic
#7E1D9F #9F3D1D #3E9F1D #1D7F9F
square
#7E1D9F #9F3D1D #3E9F1D #1D7F9F
split-complementary
#7E1D9F #7F9F1D #1D9F3D
monochromatic
#2C0A37 #55146B #7E1D9F #A726D3 #BD56E0

Accessibility & contrast

On white

8.19
#7E1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D9F
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D9F#FFFFFF#000000##FFFFFF
##7E1D9F1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#16519C
Tritanopia (blue-blind)
#7B3D5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1d9f;
/* rgb */ color: rgb(126, 29, 159);
/* oklch */ color: oklch(45.4% 0.199 315.4);
Tailwind
colors: {
  custom: {
    50: '#a866bc',
    500: '#7e1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d9f;
$custom-light: #a866bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d9f",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 284.769,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45384,
    "c": 0.19893,
    "h": 315.4
  },
  "luminance": 0.07818
}

Semantic roles & 50–950 ramp

primary
#7E1D9F
secondary
#70C454
accent
#EC3C69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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