#7B1DA7#7B1DA7

#7B1DA7 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.6% C 0.205 H 311.5°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7B1DA7
RGBrgb(123, 29, 167)
HSLhsl(281, 70%, 38%)
HSVhsv(281, 83%, 65%)
CMYKcmyk(26.3%, 82.6%, 0%, 34.5%)
CIE-LABlab(33.73, 59.29, -54.14)
CIE-LCHlch(33.73, 80.29, 317.60°)
OKLaboklab(45.57% 0.1358 -0.1535)
OKLCHoklch(45.57% 0.205 311.5)
XYZxyz(15.5815, 7.8801, 37.2519)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1DA7 #49A71D
analogous
#361DA7 #7B1DA7 #A71D8E
triadic
#7B1DA7 #A77B1D #1DA77B
tetradic
#7B1DA7 #A7361D #49A71D #1D8EA7
square
#7B1DA7 #A7361D #49A71D #1D8EA7
split-complementary
#7B1DA7 #8EA71D #1DA736
monochromatic
#2E0B3F #551473 #7B1DA7 #A128DA #B85CE3

Accessibility & contrast

On white

8.15
#7B1DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7B1DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1DA7
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1DA7#FFFFFF#000000##FFFFFF
##7B1DA71.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#754164
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b1da7;
/* rgb */ color: rgb(123, 29, 167);
/* oklch */ color: oklch(45.6% 0.205 311.5);
Tailwind
colors: {
  custom: {
    50: '#a666c2',
    500: '#7b1da7',
    950: '#000000',
  },
}
SCSS
$custom: #7b1da7;
$custom-light: #a666c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1da7",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 280.87,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4557,
    "c": 0.20498,
    "h": 311.5
  },
  "luminance": 0.0788
}

Semantic roles & 50–950 ramp

primary
#7B1DA7
secondary
#7CC759
accent
#ED3B74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B1DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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