#7B1B9E#7B1B9E

#7B1B9E is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.199 H 314.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7B1B9E
RGBrgb(123, 27, 158)
HSLhsl(284, 71%, 36%)
HSVhsv(284, 83%, 62%)
CMYKcmyk(22.2%, 82.9%, 0%, 38%)
CIE-LABlab(32.84, 58.05, -50.14)
CIE-LCHlch(32.84, 76.71, 319.18°)
OKLaboklab(44.73% 0.1393 -0.1418)
OKLCHoklch(44.73% 0.199 314.5)
XYZxyz(14.7308, 7.4640, 33.0058)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1B9E #3E9E1B
analogous
#391B9E #7B1B9E #9E1B80
triadic
#7B1B9E #9E7B1B #1B9E7B
tetradic
#7B1B9E #9E391B #3E9E1B #1B809E
square
#7B1B9E #9E391B #3E9E1B #1B809E
split-complementary
#7B1B9E #809E1B #1B9E39
monochromatic
#2A0935 #52126A #7B1B9E #A424D2 #BB52E1

Accessibility & contrast

On white

8.42
#7B1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7B1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1B9E
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1B9E#FFFFFF#000000##FFFFFF
##7B1B9E1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#0E4F9B
Tritanopia (blue-blind)
#783C5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b1b9e;
/* rgb */ color: rgb(123, 27, 158);
/* oklch */ color: oklch(44.7% 0.199 314.5);
Tailwind
colors: {
  custom: {
    50: '#a665bb',
    500: '#7b1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #7b1b9e;
$custom-light: #a665bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1b9e",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 283.969,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44732,
    "c": 0.19879,
    "h": 314.5
  },
  "luminance": 0.07463
}

Semantic roles & 50–950 ramp

primary
#7B1B9E
secondary
#6FC451
accent
#EE3A6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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