#7E1CAB#7E1CAB

#7E1CAB is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.2% C 0.210 H 311.6°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7E1CAB
RGBrgb(126, 28, 171)
HSLhsl(281, 72%, 39%)
HSVhsv(281, 84%, 67%)
CMYKcmyk(26.3%, 83.6%, 0%, 32.9%)
CIE-LABlab(34.41, 60.90, -55.42)
CIE-LCHlch(34.41, 82.34, 317.70°)
OKLaboklab(46.23% 0.1395 -0.1572)
OKLCHoklch(46.23% 0.21 311.6)
XYZxyz(16.3687, 8.2068, 39.2420)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1CAB #49AB1C
analogous
#371CAB #7E1CAB #AB1C91
triadic
#7E1CAB #AB7E1C #1CAB7E
tetradic
#7E1CAB #AB371C #49AB1C #1C91AB
square
#7E1CAB #AB371C #49AB1C #1C91AB
split-complementary
#7E1CAB #91AB1C #1CAB37
monochromatic
#310B42 #571376 #7E1CAB #A328DC #BA5DE4

Accessibility & contrast

On white

7.95
#7E1CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7E1CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1CAB
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1CAB#FFFFFF#000000##FFFFFF
##7E1CAB1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#784266
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e1cab;
/* rgb */ color: rgb(126, 28, 171);
/* oklch */ color: oklch(46.2% 0.210 311.6);
Tailwind
colors: {
  custom: {
    50: '#a967c5',
    500: '#7e1cab',
    950: '#000000',
  },
}
SCSS
$custom: #7e1cab;
$custom-light: #a967c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1cab",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 281.119,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46234,
    "c": 0.21016,
    "h": 311.6
  },
  "luminance": 0.08206
}

Semantic roles & 50–950 ramp

primary
#7E1CAB
secondary
#7DC95A
accent
#EF3972
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E1CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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