#7E1D9C#7E1D9C

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

Color values

HEX#7E1D9C
RGBrgb(126, 29, 156)
HSLhsl(286, 69%, 36%)
HSVhsv(286, 81%, 61%)
CMYKcmyk(19.2%, 81.4%, 0%, 38.8%)
CIE-LABlab(33.38, 57.60, -48.03)
CIE-LCHlch(33.38, 75.00, 320.18°)
OKLaboklab(45.16% 0.1421 -0.1355)
OKLCHoklch(45.16% 0.196 316.4)
XYZxyz(15.0434, 7.7153, 32.1428)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D9C #3B9C1D
analogous
#3F1D9C #7E1D9C #9C1D7B
triadic
#7E1D9C #9C7E1D #1D9C7E
tetradic
#7E1D9C #9C3F1D #3B9C1D #1D7B9C
square
#7E1D9C #9C3F1D #3B9C1D #1D7B9C
split-complementary
#7E1D9C #7B9C1D #1D9C3F
monochromatic
#2B0A35 #541368 #7E1D9C #A827D0 #BE54DF

Accessibility & contrast

On white

8.26
#7E1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1D9C
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D9C#FFFFFF#000000##FFFFFF
##7E1D9C1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1d9c;
/* rgb */ color: rgb(126, 29, 156);
/* oklch */ color: oklch(45.2% 0.196 316.4);
Tailwind
colors: {
  custom: {
    50: '#a866ba',
    500: '#7e1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d9c;
$custom-light: #a866ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d9c",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 285.827,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45162,
    "c": 0.19634,
    "h": 316.4
  },
  "luminance": 0.07715
}

Semantic roles & 50–950 ramp

primary
#7E1D9C
secondary
#6DC252
accent
#EB3C66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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