#7B1B96#7B1B96

#7B1B96 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.192 H 317.3°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#7B1B96
RGBrgb(123, 27, 150)
HSLhsl(287, 69%, 35%)
HSVhsv(287, 82%, 59%)
CMYKcmyk(18%, 82%, 0%, 41.2%)
CIE-LABlab(32.25, 56.48, -46.22)
CIE-LCHlch(32.25, 72.98, 320.71°)
OKLaboklab(44.13% 0.1409 -0.1302)
OKLCHoklch(44.13% 0.192 317.3)
XYZxyz(14.0645, 7.1975, 29.4967)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1B96 #36961B
analogous
#3D1B96 #7B1B96 #961B74
triadic
#7B1B96 #967B1B #1B967B
tetradic
#7B1B96 #963D1B #36961B #1B7496
square
#7B1B96 #963D1B #36961B #1B7496
split-complementary
#7B1B96 #74961B #1B963D
monochromatic
#26082E #501262 #7B1B96 #A624CA #BF4DDF

Accessibility & contrast

On white

8.61
#7B1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7B1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1B96
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1B96#FFFFFF#000000##FFFFFF
##7B1B961.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#1E4F93
Tritanopia (blue-blind)
#7A385A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b1b96;
/* rgb */ color: rgb(123, 27, 150);
/* oklch */ color: oklch(44.1% 0.192 317.3);
Tailwind
colors: {
  custom: {
    50: '#a565b6',
    500: '#7b1b96',
    950: '#000000',
  },
}
SCSS
$custom: #7b1b96;
$custom-light: #a565b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1b96",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 286.829,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44134,
    "c": 0.1919,
    "h": 317.3
  },
  "luminance": 0.07197
}

Semantic roles & 50–950 ramp

primary
#7B1B96
secondary
#65C14C
accent
#EC3B62
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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