#7F1DA0#7F1DA0

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

Color values

HEX#7F1DA0
RGBrgb(127, 29, 160)
HSLhsl(285, 69%, 37%)
HSVhsv(285, 82%, 63%)
CMYKcmyk(20.6%, 81.9%, 0%, 37.3%)
CIE-LABlab(33.84, 58.57, -49.71)
CIE-LCHlch(33.84, 76.83, 319.68°)
OKLaboklab(45.6% 0.1426 -0.1404)
OKLCHoklch(45.6% 0.2 315.4)
XYZxyz(15.5359, 7.9294, 33.9631)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1DA0 #3EA01D
analogous
#3D1DA0 #7F1DA0 #A01D80
triadic
#7F1DA0 #A07F1D #1DA07F
tetradic
#7F1DA0 #A03D1D #3EA01D #1D80A0
square
#7F1DA0 #A03D1D #3EA01D #1D80A0
split-complementary
#7F1DA0 #80A01D #1DA03D
monochromatic
#2D0A38 #56146C #7F1DA0 #A826D4 #BE57E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F1DA0#FFFFFF#000000##FFFFFF
##7F1DA01.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)
#004AA3
Deuteranopia (green-blind)
#17529D
Tritanopia (blue-blind)
#7C3D60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f1da0;
/* rgb */ color: rgb(127, 29, 160);
/* oklch */ color: oklch(45.6% 0.200 315.4);
Tailwind
colors: {
  custom: {
    50: '#a967bd',
    500: '#7f1da0',
    950: '#000000',
  },
}
SCSS
$custom: #7f1da0;
$custom-light: #a967bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1da0",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 160
  },
  "hsl": {
    "h": 284.885,
    "s": 69.312,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45603,
    "c": 0.20013,
    "h": 315.4
  },
  "luminance": 0.07929
}

Semantic roles & 50–950 ramp

primary
#7F1DA0
secondary
#71C455
accent
#EC3C68
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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