#7B1FA1#7B1FA1

#7B1FA1 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.198 H 313.3°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7B1FA1
RGBrgb(123, 31, 161)
HSLhsl(282, 68%, 38%)
HSVhsv(282, 81%, 63%)
CMYKcmyk(23.6%, 80.7%, 0%, 36.9%)
CIE-LABlab(33.49, 57.43, -50.91)
CIE-LCHlch(33.49, 76.75, 318.44°)
OKLaboklab(45.26% 0.1357 -0.1441)
OKLCHoklch(45.26% 0.198 313.3)
XYZxyz(15.0902, 7.7646, 34.4151)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1FA1 #45A11F
analogous
#3A1FA1 #7B1FA1 #A11F86
triadic
#7B1FA1 #A17B1F #1FA17B
tetradic
#7B1FA1 #A13A1F #45A11F #1F86A1
square
#7B1FA1 #A13A1F #45A11F #1F86A1
split-complementary
#7B1FA1 #86A11F #1FA13A
monochromatic
#2D0B3A #54156E #7B1FA1 #A229D4 #B95BDF

Accessibility & contrast

On white

8.23
#7B1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7B1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1FA1
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1FA1#FFFFFF#000000##FFFFFF
##7B1FA11.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#0B519E
Tritanopia (blue-blind)
#773F61
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b1fa1;
/* rgb */ color: rgb(123, 31, 161);
/* oklch */ color: oklch(45.3% 0.198 313.3);
Tailwind
colors: {
  custom: {
    50: '#a667be',
    500: '#7b1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7b1fa1;
$custom-light: #a667be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1fa1",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 282.462,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45256,
    "c": 0.1979,
    "h": 313.3
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#7B1FA1
secondary
#78C458
accent
#EB3D70
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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