#7D1BA1#7D1BA1

#7D1BA1 is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.2% C 0.202 H 314.4°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7D1BA1
RGBrgb(125, 27, 161)
HSLhsl(284, 71%, 37%)
HSVhsv(284, 83%, 63%)
CMYKcmyk(22.4%, 83.2%, 0%, 36.9%)
CIE-LABlab(33.39, 59.00, -51.06)
CIE-LCHlch(33.39, 78.03, 319.13°)
OKLaboklab(45.25% 0.1413 -0.1444)
OKLCHoklch(45.25% 0.202 314.4)
XYZxyz(15.2813, 7.7176, 34.3960)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1BA1 #3FA11B
analogous
#3A1BA1 #7D1BA1 #A11B82
triadic
#7D1BA1 #A17D1B #1BA17D
tetradic
#7D1BA1 #A13A1B #3FA11B #1B82A1
square
#7D1BA1 #A13A1B #3FA11B #1B82A1
split-complementary
#7D1BA1 #82A11B #1BA13A
monochromatic
#2C0938 #54126D #7D1BA1 #A624D5 #BC54E2

Accessibility & contrast

On white

8.26
#7D1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7D1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1BA1
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1BA1#FFFFFF#000000##FFFFFF
##7D1BA11.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#0C519E
Tritanopia (blue-blind)
#7A3D60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1ba1;
/* rgb */ color: rgb(125, 27, 161);
/* oklch */ color: oklch(45.2% 0.202 314.4);
Tailwind
colors: {
  custom: {
    50: '#a766be',
    500: '#7d1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #7d1ba1;
$custom-light: #a766be;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1ba1",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 283.881,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45249,
    "c": 0.20203,
    "h": 314.4
  },
  "luminance": 0.07717
}

Semantic roles & 50–950 ramp

primary
#7D1BA1
secondary
#71C552
accent
#EE3A6A
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7D1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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