#7B1D96#7B1D96

#7B1D96 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.190 H 317.2°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#7B1D96
RGBrgb(123, 29, 150)
HSLhsl(287, 68%, 35%)
HSVhsv(287, 81%, 59%)
CMYKcmyk(18%, 80.7%, 0%, 41.2%)
CIE-LABlab(32.46, 55.87, -45.88)
CIE-LCHlch(32.46, 72.29, 320.61°)
OKLaboklab(44.28% 0.1394 -0.1293)
OKLCHoklch(44.28% 0.19 317.2)
XYZxyz(14.1119, 7.2923, 29.5125)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D96 #38961D
analogous
#3F1D96 #7B1D96 #961D74
triadic
#7B1D96 #967B1D #1D967B
tetradic
#7B1D96 #963F1D #38961D #1D7496
square
#7B1D96 #963F1D #38961D #1D7496
split-complementary
#7B1D96 #74961D #1D963F
monochromatic
#27092F #511363 #7B1D96 #A527C9 #BE50DD

Accessibility & contrast

On white

8.54
#7B1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7B1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1D96
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D96#FFFFFF#000000##FFFFFF
##7B1D961.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#1F4F93
Tritanopia (blue-blind)
#7A395A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b1d96;
/* rgb */ color: rgb(123, 29, 150);
/* oklch */ color: oklch(44.3% 0.190 317.2);
Tailwind
colors: {
  custom: {
    50: '#a566b6',
    500: '#7b1d96',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d96;
$custom-light: #a566b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d96",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 286.612,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44282,
    "c": 0.19008,
    "h": 317.2
  },
  "luminance": 0.07292
}

Semantic roles & 50–950 ramp

primary
#7B1D96
secondary
#68C04F
accent
#EA3D64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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