#7B1F96#7B1F96

#7B1F96 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.188 H 317.0°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#7B1F96
RGBrgb(123, 31, 150)
HSLhsl(286, 66%, 35%)
HSVhsv(286, 79%, 59%)
CMYKcmyk(18%, 79.3%, 0%, 41.2%)
CIE-LABlab(32.69, 55.22, -45.52)
CIE-LCHlch(32.69, 71.56, 320.50°)
OKLaboklab(44.44% 0.1377 -0.1282)
OKLCHoklch(44.44% 0.188 317)
XYZxyz(14.1626, 7.3936, 29.5293)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F96 #3A961F
analogous
#401F96 #7B1F96 #961F75
triadic
#7B1F96 #967B1F #1F967B
tetradic
#7B1F96 #96401F #3A961F #1F7596
square
#7B1F96 #96401F #3A961F #1F7596
split-complementary
#7B1F96 #75961F #1F9640
monochromatic
#280A31 #511563 #7B1F96 #A529C9 #BD54DC

Accessibility & contrast

On white

8.47
#7B1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7B1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F96
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F96#FFFFFF#000000##FFFFFF
##7B1F961.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#214F93
Tritanopia (blue-blind)
#7A3A5A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b1f96;
/* rgb */ color: rgb(123, 31, 150);
/* oklch */ color: oklch(44.4% 0.188 317.0);
Tailwind
colors: {
  custom: {
    50: '#a566b6',
    500: '#7b1f96',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f96;
$custom-light: #a566b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f96",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 286.387,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44439,
    "c": 0.18815,
    "h": 317
  },
  "luminance": 0.07393
}

Semantic roles & 50–950 ramp

primary
#7B1F96
secondary
#6BBF52
accent
#E93F66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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