#7B1A9B#7B1A9B

#7B1A9B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.197 H 315.6°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#7B1A9B
RGBrgb(123, 26, 155)
HSLhsl(285, 71%, 35%)
HSVhsv(285, 83%, 61%)
CMYKcmyk(20.6%, 83.2%, 0%, 39.2%)
CIE-LABlab(32.52, 57.75, -48.84)
CIE-LCHlch(32.52, 75.63, 319.78°)
OKLaboklab(44.44% 0.1407 -0.1379)
OKLCHoklch(44.44% 0.197 315.6)
XYZxyz(14.4532, 7.3169, 31.6550)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A9B #3A9B1A
analogous
#3A1A9B #7B1A9B #9B1A7B
triadic
#7B1A9B #9B7B1A #1A9B7B
tetradic
#7B1A9B #9B3A1A #3A9B1A #1A7B9B
square
#7B1A9B #9B3A1A #3A9B1A #1A7B9B
split-complementary
#7B1A9B #7B9B1A #1A9B3A
monochromatic
#280832 #511167 #7B1A9B #A523CF #BD4EE1

Accessibility & contrast

On white

8.53
#7B1A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7B1A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1A9B
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A9B#FFFFFF#000000##FFFFFF
##7B1A9B1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#144F98
Tritanopia (blue-blind)
#783A5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b1a9b;
/* rgb */ color: rgb(123, 26, 155);
/* oklch */ color: oklch(44.4% 0.197 315.6);
Tailwind
colors: {
  custom: {
    50: '#a665b9',
    500: '#7b1a9b',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a9b;
$custom-light: #a665b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a9b",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 285.116,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44435,
    "c": 0.19704,
    "h": 315.6
  },
  "luminance": 0.07316
}

Semantic roles & 50–950 ramp

primary
#7B1A9B
secondary
#6BC44D
accent
#EE3A66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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