#7D1B96#7D1B96

#7D1B96 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.193 H 318.1°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7D1B96
RGBrgb(125, 27, 150)
HSLhsl(288, 69%, 35%)
HSVhsv(288, 82%, 59%)
CMYKcmyk(16.7%, 82%, 0%, 41.2%)
CIE-LABlab(32.58, 56.85, -45.67)
CIE-LCHlch(32.58, 72.92, 321.23°)
OKLaboklab(44.43% 0.1434 -0.1286)
OKLCHoklch(44.43% 0.193 318.1)
XYZxyz(14.3536, 7.3465, 29.5102)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1B96 #34961B
analogous
#401B96 #7D1B96 #961B72
triadic
#7D1B96 #967D1B #1B967D
tetradic
#7D1B96 #96401B #34961B #1B7296
square
#7D1B96 #96401B #34961B #1B7296
split-complementary
#7D1B96 #72961B #1B9640
monochromatic
#27082E #521262 #7D1B96 #A824CA #C14DDF

Accessibility & contrast

On white

8.50
#7D1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7D1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1B96
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1B96#FFFFFF#000000##FFFFFF
##7D1B961.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#215093
Tritanopia (blue-blind)
#7C385A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d1b96;
/* rgb */ color: rgb(125, 27, 150);
/* oklch */ color: oklch(44.4% 0.193 318.1);
Tailwind
colors: {
  custom: {
    50: '#a765b6',
    500: '#7d1b96',
    950: '#000000',
  },
}
SCSS
$custom: #7d1b96;
$custom-light: #a765b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1b96",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 287.805,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44431,
    "c": 0.19263,
    "h": 318.1
  },
  "luminance": 0.07346
}

Semantic roles & 50–950 ramp

primary
#7D1B96
secondary
#64C14C
accent
#EC3B5F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7D1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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