#7E1BA6#7E1BA6

#7E1BA6 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.8% C 0.207 H 313.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7E1BA6
RGBrgb(126, 27, 166)
HSLhsl(283, 72%, 38%)
HSVhsv(283, 84%, 65%)
CMYKcmyk(24.1%, 83.7%, 0%, 34.9%)
CIE-LABlab(33.93, 60.17, -53.20)
CIE-LCHlch(33.93, 80.31, 318.52°)
OKLaboklab(45.78% 0.1414 -0.1506)
OKLCHoklch(45.78% 0.207 313.2)
XYZxyz(15.8778, 7.9732, 36.7716)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1BA6 #43A61B
analogous
#391BA6 #7E1BA6 #A61B88
triadic
#7E1BA6 #A67E1B #1BA67E
tetradic
#7E1BA6 #A6391B #43A61B #1B88A6
square
#7E1BA6 #A6391B #43A61B #1B88A6
split-complementary
#7E1BA6 #88A61B #1BA639
monochromatic
#2E0A3D #561271 #7E1BA6 #A624DB #BB58E4

Accessibility & contrast

On white

8.09
#7E1BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E1BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1BA6
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1BA6#FFFFFF#000000##FFFFFF
##7E1BA61.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#7A3F63
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e1ba6;
/* rgb */ color: rgb(126, 27, 166);
/* oklch */ color: oklch(45.8% 0.207 313.2);
Tailwind
colors: {
  custom: {
    50: '#a866c1',
    500: '#7e1ba6',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ba6;
$custom-light: #a866c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ba6",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 166
  },
  "hsl": {
    "h": 282.734,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45777,
    "c": 0.20663,
    "h": 313.2
  },
  "luminance": 0.07973
}

Semantic roles & 50–950 ramp

primary
#7E1BA6
secondary
#76C756
accent
#EF396D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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