#7E1BA0#7E1BA0

#7E1BA0 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.3% C 0.201 H 315.1°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7E1BA0
RGBrgb(126, 27, 160)
HSLhsl(285, 71%, 37%)
HSVhsv(285, 83%, 63%)
CMYKcmyk(21.2%, 83.1%, 0%, 37.3%)
CIE-LABlab(33.47, 58.98, -50.31)
CIE-LCHlch(33.47, 77.52, 319.54°)
OKLaboklab(45.32% 0.1428 -0.1422)
OKLCHoklch(45.32% 0.201 315.1)
XYZxyz(15.3402, 7.7581, 33.9403)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1BA0 #3DA01B
analogous
#3C1BA0 #7E1BA0 #A01B80
triadic
#7E1BA0 #A07E1B #1BA07E
tetradic
#7E1BA0 #A03C1B #3DA01B #1B80A0
square
#7E1BA0 #A03C1B #3DA01B #1B80A0
split-complementary
#7E1BA0 #80A01B #1BA03C
monochromatic
#2C0937 #55126C #7E1BA0 #A724D4 #BE53E2

Accessibility & contrast

On white

8.23
#7E1BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E1BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1BA0
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1BA0#FFFFFF#000000##FFFFFF
##7E1BA01.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#12519D
Tritanopia (blue-blind)
#7B3C5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1ba0;
/* rgb */ color: rgb(126, 27, 160);
/* oklch */ color: oklch(45.3% 0.201 315.1);
Tailwind
colors: {
  custom: {
    50: '#a866bd',
    500: '#7e1ba0',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ba0;
$custom-light: #a866bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ba0",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 284.662,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45318,
    "c": 0.20149,
    "h": 315.1
  },
  "luminance": 0.07758
}

Semantic roles & 50–950 ramp

primary
#7E1BA0
secondary
#6FC552
accent
#EE3A68
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E1BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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