#7E1AB3#7E1AB3

#7E1AB3 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.7% C 0.219 H 309.4°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7E1AB3
RGBrgb(126, 26, 179)
HSLhsl(279, 75%, 40%)
HSVhsv(279, 85%, 70%)
CMYKcmyk(29.6%, 85.5%, 0%, 29.8%)
CIE-LABlab(34.86, 63.08, -59.46)
CIE-LCHlch(34.86, 86.68, 316.69°)
OKLaboklab(46.75% 0.1386 -0.169)
OKLCHoklch(46.75% 0.219 309.4)
XYZxyz(17.1086, 8.4294, 43.3649)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1AB3 #4FB31A
analogous
#321AB3 #7E1AB3 #B31A9B
triadic
#7E1AB3 #B37E1A #1AB37E
tetradic
#7E1AB3 #B3321A #4FB31A #1A9BB3
square
#7E1AB3 #B3321A #4FB31A #1A9BB3
split-complementary
#7E1AB3 #9BB31A #1AB332
monochromatic
#330A48 #58127E #7E1AB3 #A12AE0 #B960E8

Accessibility & contrast

On white

7.82
#7E1AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7E1AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1AB3
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1AB3#FFFFFF#000000##FFFFFF
##7E1AB31.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#76456A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e1ab3;
/* rgb */ color: rgb(126, 26, 179);
/* oklch */ color: oklch(46.7% 0.219 309.4);
Tailwind
colors: {
  custom: {
    50: '#a967cb',
    500: '#7e1ab3',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ab3;
$custom-light: #a967cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ab3",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 279.216,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46746,
    "c": 0.2186,
    "h": 309.4
  },
  "luminance": 0.08429
}

Semantic roles & 50–950 ramp

primary
#7E1AB3
secondary
#83CC5D
accent
#F13777
background
#FAF6FC
surface
#F5EBF9
border
#CFC6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7E1AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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