#7E1BA7#7E1BA7

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

Color values

HEX#7E1BA7
RGBrgb(126, 27, 167)
HSLhsl(282, 72%, 38%)
HSVhsv(282, 84%, 65%)
CMYKcmyk(24.6%, 83.8%, 0%, 34.5%)
CIE-LABlab(34.00, 60.37, -53.67)
CIE-LCHlch(34.00, 80.78, 318.36°)
OKLaboklab(45.85% 0.1412 -0.152)
OKLCHoklch(45.85% 0.207 312.9)
XYZxyz(15.9699, 8.0100, 37.2566)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1BA7 #44A71B
analogous
#381BA7 #7E1BA7 #A71B8A
triadic
#7E1BA7 #A77E1B #1BA77E
tetradic
#7E1BA7 #A7381B #44A71B #1B8AA7
square
#7E1BA7 #A7381B #44A71B #1B8AA7
split-complementary
#7E1BA7 #8AA71B #1BA738
monochromatic
#2F0A3E #561272 #7E1BA7 #A624DC #BB58E4

Accessibility & contrast

On white

8.07
#7E1BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E1BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1BA7
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1BA7#FFFFFF#000000##FFFFFF
##7E1BA71.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#794063
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e1ba7;
/* rgb */ color: rgb(126, 27, 167);
/* oklch */ color: oklch(45.9% 0.207 312.9);
Tailwind
colors: {
  custom: {
    50: '#a866c2',
    500: '#7e1ba7',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ba7;
$custom-light: #a866c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ba7",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 282.429,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45854,
    "c": 0.20749,
    "h": 312.9
  },
  "luminance": 0.0801
}

Semantic roles & 50–950 ramp

primary
#7E1BA7
secondary
#77C856
accent
#EF396E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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