#7B1DA1#7B1DA1

#7B1DA1 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.200 H 313.4°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7B1DA1
RGBrgb(123, 29, 161)
HSLhsl(283, 69%, 37%)
HSVhsv(283, 82%, 63%)
CMYKcmyk(23.6%, 82%, 0%, 36.9%)
CIE-LABlab(33.27, 58.06, -51.26)
CIE-LCHlch(33.27, 77.45, 318.56°)
OKLaboklab(45.1% 0.1372 -0.1451)
OKLCHoklch(45.1% 0.2 313.4)
XYZxyz(15.0396, 7.6634, 34.3982)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1DA1 #43A11D
analogous
#391DA1 #7B1DA1 #A11D85
triadic
#7B1DA1 #A17B1D #1DA17B
tetradic
#7B1DA1 #A1391D #43A11D #1D85A1
square
#7B1DA1 #A1391D #43A11D #1D85A1
split-complementary
#7B1DA1 #85A11D #1DA139
monochromatic
#2C0A39 #53146D #7B1DA1 #A326D5 #B958E1

Accessibility & contrast

On white

8.29
#7B1DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7B1DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1DA1
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1DA1#FFFFFF#000000##FFFFFF
##7B1DA11.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#07509E
Tritanopia (blue-blind)
#773E60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b1da1;
/* rgb */ color: rgb(123, 29, 161);
/* oklch */ color: oklch(45.1% 0.200 313.4);
Tailwind
colors: {
  custom: {
    50: '#a666be',
    500: '#7b1da1',
    950: '#000000',
  },
}
SCSS
$custom: #7b1da1;
$custom-light: #a666be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1da1",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 282.727,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45104,
    "c": 0.19969,
    "h": 313.4
  },
  "luminance": 0.07663
}

Semantic roles & 50–950 ramp

primary
#7B1DA1
secondary
#75C455
accent
#EC3C6E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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