#7D1BA7#7D1BA7

#7D1BA7 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.7% C 0.207 H 312.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7D1BA7
RGBrgb(125, 27, 167)
HSLhsl(282, 72%, 38%)
HSVhsv(282, 84%, 65%)
CMYKcmyk(25.1%, 83.8%, 0%, 34.5%)
CIE-LABlab(33.85, 60.20, -53.94)
CIE-LCHlch(33.85, 80.83, 318.14°)
OKLaboklab(45.71% 0.1399 -0.1529)
OKLCHoklch(45.71% 0.207 312.5)
XYZxyz(15.8231, 7.9343, 37.2497)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1BA7 #45A71B
analogous
#371BA7 #7D1BA7 #A71B8B
triadic
#7D1BA7 #A77D1B #1BA77D
tetradic
#7D1BA7 #A7371B #45A71B #1B8BA7
square
#7D1BA7 #A7371B #45A71B #1B8BA7
split-complementary
#7D1BA7 #8BA71B #1BA737
monochromatic
#2E0A3E #561272 #7D1BA7 #A424DC #BA58E4

Accessibility & contrast

On white

8.12
#7D1BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7D1BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1BA7
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1BA7#FFFFFF#000000##FFFFFF
##7D1BA71.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#784063
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d1ba7;
/* rgb */ color: rgb(125, 27, 167);
/* oklch */ color: oklch(45.7% 0.207 312.5);
Tailwind
colors: {
  custom: {
    50: '#a866c2',
    500: '#7d1ba7',
    950: '#000000',
  },
}
SCSS
$custom: #7d1ba7;
$custom-light: #a866c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1ba7",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 282,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45712,
    "c": 0.2072,
    "h": 312.5
  },
  "luminance": 0.07934
}

Semantic roles & 50–950 ramp

primary
#7D1BA7
secondary
#78C856
accent
#EF3970
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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