#7B1F97#7B1F97

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

Color values

HEX#7B1F97
RGBrgb(123, 31, 151)
HSLhsl(286, 66%, 36%)
HSVhsv(286, 79%, 59%)
CMYKcmyk(18.5%, 79.5%, 0%, 40.8%)
CIE-LABlab(32.76, 55.42, -46.01)
CIE-LCHlch(32.76, 72.03, 320.30°)
OKLaboklab(44.51% 0.1375 -0.1297)
OKLCHoklch(44.51% 0.189 316.7)
XYZxyz(14.2434, 7.4259, 29.9552)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F97 #3B971F
analogous
#3F1F97 #7B1F97 #971F77
triadic
#7B1F97 #977B1F #1F977B
tetradic
#7B1F97 #973F1F #3B971F #1F7797
square
#7B1F97 #973F1F #3B971F #1F7797
split-complementary
#7B1F97 #77971F #1F973F
monochromatic
#280A31 #521564 #7B1F97 #A429CA #BC54DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B1F97#FFFFFF#000000##FFFFFF
##7B1F971.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)
#00489A
Deuteranopia (green-blind)
#1F5094
Tritanopia (blue-blind)
#793A5B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b1f97;
/* rgb */ color: rgb(123, 31, 151);
/* oklch */ color: oklch(44.5% 0.189 316.7);
Tailwind
colors: {
  custom: {
    50: '#a566b6',
    500: '#7b1f97',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f97;
$custom-light: #a566b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f97",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 286,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44512,
    "c": 0.18903,
    "h": 316.7
  },
  "luminance": 0.07425
}

Semantic roles & 50–950 ramp

primary
#7B1F97
secondary
#6CBF52
accent
#E93F67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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