#7B1DB3#7B1DB3

#7B1DB3 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.5% C 0.216 H 307.9°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7B1DB3
RGBrgb(123, 29, 179)
HSLhsl(278, 72%, 41%)
HSVhsv(278, 84%, 70%)
CMYKcmyk(31.3%, 83.8%, 0%, 29.8%)
CIE-LABlab(34.69, 61.79, -59.75)
CIE-LCHlch(34.69, 85.96, 315.96°)
OKLaboklab(46.54% 0.1326 -0.17)
OKLCHoklch(46.54% 0.216 307.9)
XYZxyz(16.7427, 8.3446, 43.3677)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1DB3 #55B31D
analogous
#301DB3 #7B1DB3 #B31DA0
triadic
#7B1DB3 #B37B1D #1DB37B
tetradic
#7B1DB3 #B3301D #55B31D #1DA0B3
square
#7B1DB3 #B3301D #55B31D #1DA0B3
split-complementary
#7B1DB3 #A0B31D #1DB330
monochromatic
#330C4A #57147E #7B1DB3 #9D30DD #B664E6

Accessibility & contrast

On white

7.87
#7B1DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7B1DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1DB3
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1DB3#FFFFFF#000000##FFFFFF
##7B1DB31.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#72476B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b1db3;
/* rgb */ color: rgb(123, 29, 179);
/* oklch */ color: oklch(46.5% 0.216 307.9);
Tailwind
colors: {
  custom: {
    50: '#a767cb',
    500: '#7b1db3',
    950: '#000000',
  },
}
SCSS
$custom: #7b1db3;
$custom-light: #a767cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1db3",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 277.6,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46535,
    "c": 0.21562,
    "h": 307.9
  },
  "luminance": 0.08344
}

Semantic roles & 50–950 ramp

primary
#7B1DB3
secondary
#88CB61
accent
#EF397D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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