#7B1B9D#7B1B9D

#7B1B9D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.7% C 0.198 H 314.8°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7B1B9D
RGBrgb(123, 27, 157)
HSLhsl(284, 71%, 36%)
HSVhsv(284, 83%, 62%)
CMYKcmyk(21.7%, 82.8%, 0%, 38.4%)
CIE-LABlab(32.77, 57.86, -49.66)
CIE-LCHlch(32.77, 76.24, 319.36°)
OKLaboklab(44.66% 0.1396 -0.1403)
OKLCHoklch(44.66% 0.198 314.8)
XYZxyz(14.6451, 7.4297, 32.5544)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1B9D #3D9D1B
analogous
#3A1B9D #7B1B9D #9D1B7E
triadic
#7B1B9D #9D7B1B #1B9D7B
tetradic
#7B1B9D #9D3A1B #3D9D1B #1B7E9D
square
#7B1B9D #9D3A1B #3D9D1B #1B7E9D
split-complementary
#7B1B9D #7E9D1B #1B9D3A
monochromatic
#290935 #521269 #7B1B9D #A424D1 #BC51E1

Accessibility & contrast

On white

8.45
#7B1B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1B9D
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1B9D#FFFFFF#000000##FFFFFF
##7B1B9D1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#104F9A
Tritanopia (blue-blind)
#783B5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b1b9d;
/* rgb */ color: rgb(123, 27, 157);
/* oklch */ color: oklch(44.7% 0.198 314.8);
Tailwind
colors: {
  custom: {
    50: '#a665bb',
    500: '#7b1b9d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1b9d;
$custom-light: #a665bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1b9d",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 157
  },
  "hsl": {
    "h": 284.308,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44656,
    "c": 0.19792,
    "h": 314.8
  },
  "luminance": 0.07429
}

Semantic roles & 50–950 ramp

primary
#7B1B9D
secondary
#6EC450
accent
#ED3A69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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