#7B1EA1#7B1EA1

#7B1EA1 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.199 H 313.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7B1EA1
RGBrgb(123, 30, 161)
HSLhsl(283, 69%, 37%)
HSVhsv(283, 81%, 63%)
CMYKcmyk(23.6%, 81.4%, 0%, 36.9%)
CIE-LABlab(33.38, 57.75, -51.09)
CIE-LCHlch(33.38, 77.11, 318.50°)
OKLaboklab(45.18% 0.1364 -0.1446)
OKLCHoklch(45.18% 0.199 313.3)
XYZxyz(15.0645, 7.7132, 34.4065)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1EA1 #44A11E
analogous
#391EA1 #7B1EA1 #A11E86
triadic
#7B1EA1 #A17B1E #1EA17B
tetradic
#7B1EA1 #A1391E #44A11E #1E86A1
square
#7B1EA1 #A1391E #44A11E #1E86A1
split-complementary
#7B1EA1 #86A11E #1EA139
monochromatic
#2C0B3A #54146D #7B1EA1 #A228D5 #B959E0

Accessibility & contrast

On white

8.26
#7B1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7B1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1EA1
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1EA1#FFFFFF#000000##FFFFFF
##7B1EA11.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b1ea1;
/* rgb */ color: rgb(123, 30, 161);
/* oklch */ color: oklch(45.2% 0.199 313.3);
Tailwind
colors: {
  custom: {
    50: '#a666be',
    500: '#7b1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #7b1ea1;
$custom-light: #a666be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1ea1",
  "rgb": {
    "r": 123,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 282.595,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45179,
    "c": 0.1988,
    "h": 313.3
  },
  "luminance": 0.07713
}

Semantic roles & 50–950 ramp

primary
#7B1EA1
secondary
#77C457
accent
#EB3C6F
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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