#7E1F9C#7E1F9C

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

Color values

HEX#7E1F9C
RGBrgb(126, 31, 156)
HSLhsl(286, 67%, 37%)
HSVhsv(286, 80%, 61%)
CMYKcmyk(19.2%, 80.1%, 0%, 38.8%)
CIE-LABlab(33.60, 56.98, -47.68)
CIE-LCHlch(33.60, 74.30, 320.08°)
OKLaboklab(45.31% 0.1405 -0.1345)
OKLCHoklch(45.31% 0.195 316.3)
XYZxyz(15.0940, 7.8165, 32.1597)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F9C #3D9C1F
analogous
#401F9C #7E1F9C #9C1F7C
triadic
#7E1F9C #9C7E1F #1F9C7E
tetradic
#7E1F9C #9C401F #3D9C1F #1F7C9C
square
#7E1F9C #9C401F #3D9C1F #1F7C9C
split-complementary
#7E1F9C #7C9C1F #1F9C40
monochromatic
#2C0B36 #551569 #7E1F9C #A729CF #BE58DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1F9C#FFFFFF#000000##FFFFFF
##7E1F9C1.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)
#004A9F
Deuteranopia (green-blind)
#1E5299
Tritanopia (blue-blind)
#7C3C5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1f9c;
/* rgb */ color: rgb(126, 31, 156);
/* oklch */ color: oklch(45.3% 0.195 316.3);
Tailwind
colors: {
  custom: {
    50: '#a867ba',
    500: '#7e1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f9c;
$custom-light: #a867ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f9c",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 285.6,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45313,
    "c": 0.1945,
    "h": 316.3
  },
  "luminance": 0.07816
}

Semantic roles & 50–950 ramp

primary
#7E1F9C
secondary
#6FC155
accent
#EA3E67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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