#7B1BA1#7B1BA1

#7B1BA1 is a dark, highly saturated purple. Relative luminance 0.076; OKLCH L 45.0% C 0.201 H 313.5°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7B1BA1
RGBrgb(123, 27, 161)
HSLhsl(283, 71%, 37%)
HSVhsv(283, 83%, 63%)
CMYKcmyk(23.6%, 83.2%, 0%, 36.9%)
CIE-LABlab(33.07, 58.66, -51.59)
CIE-LCHlch(33.07, 78.12, 318.67°)
OKLaboklab(44.96% 0.1387 -0.146)
OKLCHoklch(44.96% 0.201 313.5)
XYZxyz(14.9922, 7.5685, 34.3824)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1BA1 #41A11B
analogous
#381BA1 #7B1BA1 #A11B84
triadic
#7B1BA1 #A17B1B #1BA17B
tetradic
#7B1BA1 #A1381B #41A11B #1B84A1
square
#7B1BA1 #A1381B #41A11B #1B84A1
split-complementary
#7B1BA1 #84A11B #1BA138
monochromatic
#2B0938 #53126D #7B1BA1 #A324D5 #BA54E2

Accessibility & contrast

On white

8.35
#7B1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7B1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1BA1
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1BA1#FFFFFF#000000##FFFFFF
##7B1BA11.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#03509E
Tritanopia (blue-blind)
#773D60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b1ba1;
/* rgb */ color: rgb(123, 27, 161);
/* oklch */ color: oklch(45.0% 0.201 313.5);
Tailwind
colors: {
  custom: {
    50: '#a665be',
    500: '#7b1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #7b1ba1;
$custom-light: #a665be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1ba1",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 282.985,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44962,
    "c": 0.20138,
    "h": 313.5
  },
  "luminance": 0.07568
}

Semantic roles & 50–950 ramp

primary
#7B1BA1
secondary
#73C552
accent
#EE3A6D
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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