#7E1FB4#7E1FB4

#7E1FB4 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.2% C 0.216 H 308.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7E1FB4
RGBrgb(126, 31, 180)
HSLhsl(278, 71%, 41%)
HSVhsv(278, 83%, 71%)
CMYKcmyk(30%, 82.8%, 0%, 29.4%)
CIE-LABlab(35.42, 61.88, -59.14)
CIE-LCHlch(35.42, 85.59, 316.30°)
OKLaboklab(47.16% 0.1351 -0.1681)
OKLCHoklch(47.16% 0.216 308.8)
XYZxyz(17.3307, 8.7112, 43.9396)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1FB4 #55B41F
analogous
#341FB4 #7E1FB4 #B41FA0
triadic
#7E1FB4 #B47E1F #1FB47E
tetradic
#7E1FB4 #B4341F #55B41F #1FA0B4
square
#7E1FB4 #B4341F #55B41F #1FA0B4
split-complementary
#7E1FB4 #A0B41F #1FB434
monochromatic
#350D4C #591680 #7E1FB4 #9F34DC #B868E5

Accessibility & contrast

On white

7.66
#7E1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7E1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1FB4
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1FB4#FFFFFF#000000##FFFFFF
##7E1FB41.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#75476C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e1fb4;
/* rgb */ color: rgb(126, 31, 180);
/* oklch */ color: oklch(47.2% 0.216 308.8);
Tailwind
colors: {
  custom: {
    50: '#a968cb',
    500: '#7e1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #7e1fb4;
$custom-light: #a968cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1fb4",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 278.255,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4716,
    "c": 0.21568,
    "h": 308.8
  },
  "luminance": 0.08711
}

Semantic roles & 50–950 ramp

primary
#7E1FB4
secondary
#89CB64
accent
#ED3A7B
background
#FAF6FC
surface
#F5EBF9
border
#CFC6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7E1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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