#7E1BB4#7E1BB4

#7E1BB4 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.9% C 0.219 H 309.0°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7E1BB4
RGBrgb(126, 27, 180)
HSLhsl(279, 74%, 41%)
HSVhsv(279, 85%, 71%)
CMYKcmyk(30%, 85%, 0%, 29.4%)
CIE-LABlab(35.03, 63.02, -59.77)
CIE-LCHlch(35.03, 86.86, 316.52°)
OKLaboklab(46.89% 0.1377 -0.17)
OKLCHoklch(46.89% 0.219 309)
XYZxyz(17.2326, 8.5151, 43.9069)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1BB4 #51B41B
analogous
#321BB4 #7E1BB4 #B41B9D
triadic
#7E1BB4 #B47E1B #1BB47E
tetradic
#7E1BB4 #B4321B #51B41B #1B9DB4
square
#7E1BB4 #B4321B #51B41B #1B9DB4
split-complementary
#7E1BB4 #9DB41B #1BB432
monochromatic
#330B4A #59137F #7E1BB4 #A02DDF #B862E7

Accessibility & contrast

On white

7.77
#7E1BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7E1BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1BB4
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1BB4#FFFFFF#000000##FFFFFF
##7E1BB41.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#75466B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e1bb4;
/* rgb */ color: rgb(126, 27, 180);
/* oklch */ color: oklch(46.9% 0.219 309.0);
Tailwind
colors: {
  custom: {
    50: '#a967cb',
    500: '#7e1bb4',
    950: '#000000',
  },
}
SCSS
$custom: #7e1bb4;
$custom-light: #a967cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1bb4",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 278.824,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46891,
    "c": 0.21876,
    "h": 309
  },
  "luminance": 0.08515
}

Semantic roles & 50–950 ramp

primary
#7E1BB4
secondary
#85CC5F
accent
#F13779
background
#FAF6FC
surface
#F5EBF9
border
#CFC6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7E1BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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