#7E1E9F#7E1E9F

#7E1E9F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.198 H 315.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7E1E9F
RGBrgb(126, 30, 159)
HSLhsl(285, 68%, 37%)
HSVhsv(285, 81%, 62%)
CMYKcmyk(20.8%, 81.1%, 0%, 37.6%)
CIE-LABlab(33.71, 57.89, -49.32)
CIE-LCHlch(33.71, 76.05, 319.57°)
OKLaboklab(45.46% 0.1408 -0.1393)
OKLCHoklch(45.46% 0.198 315.3)
XYZxyz(15.3254, 7.8680, 33.5056)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E9F #3F9F1E
analogous
#3D1E9F #7E1E9F #9F1E80
triadic
#7E1E9F #9F7E1E #1E9F7E
tetradic
#7E1E9F #9F3D1E #3F9F1E #1E809F
square
#7E1E9F #9F3D1E #3F9F1E #1E809F
split-complementary
#7E1E9F #809F1E #1E9F3D
monochromatic
#2C0B38 #55146C #7E1E9F #A728D2 #BD58DF

Accessibility & contrast

On white

8.16
#7E1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E1E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E9F
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E9F#FFFFFF#000000##FFFFFF
##7E1E9F1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1e9f;
/* rgb */ color: rgb(126, 30, 159);
/* oklch */ color: oklch(45.5% 0.198 315.3);
Tailwind
colors: {
  custom: {
    50: '#a867bc',
    500: '#7e1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e9f;
$custom-light: #a867bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e9f",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 284.651,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45458,
    "c": 0.19804,
    "h": 315.3
  },
  "luminance": 0.07867
}

Semantic roles & 50–950 ramp

primary
#7E1E9F
secondary
#72C356
accent
#EB3D69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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