#7E1BA1#7E1BA1

#7E1BA1 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.4% C 0.202 H 314.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7E1BA1
RGBrgb(126, 27, 161)
HSLhsl(284, 71%, 37%)
HSVhsv(284, 83%, 63%)
CMYKcmyk(21.7%, 83.2%, 0%, 36.9%)
CIE-LABlab(33.55, 59.18, -50.79)
CIE-LCHlch(33.55, 77.98, 319.36°)
OKLaboklab(45.39% 0.1426 -0.1436)
OKLCHoklch(45.39% 0.202 314.8)
XYZxyz(15.4281, 7.7933, 34.4029)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1BA1 #3EA11B
analogous
#3B1BA1 #7E1BA1 #A11B81
triadic
#7E1BA1 #A17E1B #1BA17E
tetradic
#7E1BA1 #A13B1B #3EA11B #1B81A1
square
#7E1BA1 #A13B1B #3EA11B #1B81A1
split-complementary
#7E1BA1 #81A11B #1BA13B
monochromatic
#2C0938 #55126D #7E1BA1 #A724D5 #BD54E2

Accessibility & contrast

On white

8.21
#7E1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1BA1
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1BA1#FFFFFF#000000##FFFFFF
##7E1BA11.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#0F519E
Tritanopia (blue-blind)
#7B3D60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1ba1;
/* rgb */ color: rgb(126, 27, 161);
/* oklch */ color: oklch(45.4% 0.202 314.8);
Tailwind
colors: {
  custom: {
    50: '#a866be',
    500: '#7e1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ba1;
$custom-light: #a866be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ba1",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 284.328,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45394,
    "c": 0.20235,
    "h": 314.8
  },
  "luminance": 0.07793
}

Semantic roles & 50–950 ramp

primary
#7E1BA1
secondary
#70C552
accent
#EE3A69
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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