#7B1996#7B1996

#7B1996 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.194 H 317.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7B1996
RGBrgb(123, 25, 150)
HSLhsl(287, 71%, 34%)
HSVhsv(287, 83%, 59%)
CMYKcmyk(18%, 83.3%, 0%, 41.2%)
CIE-LABlab(32.05, 57.06, -46.54)
CIE-LCHlch(32.05, 73.63, 320.80°)
OKLaboklab(43.99% 0.1424 -0.1312)
OKLCHoklch(43.99% 0.194 317.4)
XYZxyz(14.0202, 7.1089, 29.4819)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1996 #349619
analogous
#3D1996 #7B1996 #961973
triadic
#7B1996 #967B19 #19967B
tetradic
#7B1996 #963D19 #349619 #197396
square
#7B1996 #963D19 #349619 #197396
split-complementary
#7B1996 #739619 #19963D
monochromatic
#25082D #501062 #7B1996 #A622CA #C049E1

Accessibility & contrast

On white

8.67
#7B1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7B1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1996
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1996#FFFFFF#000000##FFFFFF
##7B19961.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#1C4E93
Tritanopia (blue-blind)
#7A3759
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b1996;
/* rgb */ color: rgb(123, 25, 150);
/* oklch */ color: oklch(44.0% 0.194 317.4);
Tailwind
colors: {
  custom: {
    50: '#a564b6',
    500: '#7b1996',
    950: '#000000',
  },
}
SCSS
$custom: #7b1996;
$custom-light: #a564b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1996",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 287.04,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.43994,
    "c": 0.19362,
    "h": 317.4
  },
  "luminance": 0.07108
}

Semantic roles & 50–950 ramp

primary
#7B1996
secondary
#63C249
accent
#EE3A61
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1996

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

Preview Lab → · Contrast checker → · Palette generator →

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