#7B1DC1#7B1DC1

#7B1DC1 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.7% C 0.228 H 304.2°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7B1DC1
RGBrgb(123, 29, 193)
HSLhsl(274, 74%, 44%)
HSVhsv(274, 85%, 76%)
CMYKcmyk(36.3%, 85%, 0%, 24.3%)
CIE-LABlab(35.87, 64.78, -66.10)
CIE-LCHlch(35.87, 92.56, 314.42°)
OKLaboklab(47.71% 0.1282 -0.1887)
OKLCHoklch(47.71% 0.228 304.2)
XYZxyz(18.2311, 8.9400, 51.2069)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1DC1 #63C11D
analogous
#291DC1 #7B1DC1 #C11DB5
triadic
#7B1DC1 #C17B1D #1DC17B
tetradic
#7B1DC1 #C1291D #63C11D #1DB5C1
square
#7B1DC1 #C1291D #63C11D #1DB5C1
split-complementary
#7B1DC1 #B5C11D #1DC129
monochromatic
#370D57 #59158C #7B1DC1 #9A3AE1 #B56FE9

Accessibility & contrast

On white

7.53
#7B1DC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7B1DC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1DC1
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1DC1#FFFFFF#000000##FFFFFF
##7B1DC11.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C5
Deuteranopia (green-blind)
#0054BE
Tritanopia (blue-blind)
#6D4D73
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b1dc1;
/* rgb */ color: rgb(123, 29, 193);
/* oklch */ color: oklch(47.7% 0.228 304.2);
Tailwind
colors: {
  custom: {
    50: '#a868d5',
    500: '#7b1dc1',
    950: '#000000',
  },
}
SCSS
$custom: #7b1dc1;
$custom-light: #a868d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1dc1",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 193
  },
  "hsl": {
    "h": 274.39,
    "s": 73.874,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47713,
    "c": 0.22814,
    "h": 304.2
  },
  "luminance": 0.0894
}

Semantic roles & 50–950 ramp

primary
#7B1DC1
secondary
#95D06A
accent
#F13786
background
#FAF6FD
surface
#F5EBFA
border
#CFC6D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7B1DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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