#7B1AB3#7B1AB3

#7B1AB3 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.3% C 0.218 H 308.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7B1AB3
RGBrgb(123, 26, 179)
HSLhsl(278, 75%, 40%)
HSVhsv(278, 85%, 70%)
CMYKcmyk(31.3%, 85.5%, 0%, 29.8%)
CIE-LABlab(34.41, 62.63, -60.22)
CIE-LCHlch(34.41, 86.88, 316.12°)
OKLaboklab(46.34% 0.1345 -0.1714)
OKLCHoklch(46.34% 0.218 308.1)
XYZxyz(16.6727, 8.2047, 43.3444)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1AB3 #52B31A
analogous
#2E1AB3 #7B1AB3 #B31A9F
triadic
#7B1AB3 #B37B1A #1AB37B
tetradic
#7B1AB3 #B32E1A #52B31A #1A9FB3
square
#7B1AB3 #B32E1A #52B31A #1A9FB3
split-complementary
#7B1AB3 #9FB31A #1AB32E
monochromatic
#320A48 #56127E #7B1AB3 #9D2AE0 #B660E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B1AB3#FFFFFF#000000##FFFFFF
##7B1AB31.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)
#004EB7
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#72466A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b1ab3;
/* rgb */ color: rgb(123, 26, 179);
/* oklch */ color: oklch(46.3% 0.218 308.1);
Tailwind
colors: {
  custom: {
    50: '#a766cb',
    500: '#7b1ab3',
    950: '#000000',
  },
}
SCSS
$custom: #7b1ab3;
$custom-light: #a766cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1ab3",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 278.039,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46338,
    "c": 0.21784,
    "h": 308.1
  },
  "luminance": 0.08204
}

Semantic roles & 50–950 ramp

primary
#7B1AB3
secondary
#85CC5D
accent
#F1377B
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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