#7F1DAD#7F1DAD

#7F1DAD is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.6% C 0.211 H 311.4°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7F1DAD
RGBrgb(127, 29, 173)
HSLhsl(281, 71%, 40%)
HSVhsv(281, 83%, 68%)
CMYKcmyk(26.6%, 83.2%, 0%, 32.2%)
CIE-LABlab(34.82, 61.18, -55.94)
CIE-LCHlch(34.82, 82.90, 317.56°)
OKLaboklab(46.6% 0.1397 -0.1587)
OKLCHoklch(46.6% 0.211 311.4)
XYZxyz(16.7331, 8.4083, 40.2686)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1DAD #4BAD1D
analogous
#371DAD #7F1DAD #AD1D93
triadic
#7F1DAD #AD7F1D #1DAD7F
tetradic
#7F1DAD #AD371D #4BAD1D #1D93AD
square
#7F1DAD #AD371D #4BAD1D #1D93AD
split-complementary
#7F1DAD #93AD1D #1DAD37
monochromatic
#320B44 #591479 #7F1DAD #A32CDC #BA60E4

Accessibility & contrast

On white

7.83
#7F1DAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F1DAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1DAD
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1DAD#FFFFFF#000000##FFFFFF
##7F1DAD1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#794367
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f1dad;
/* rgb */ color: rgb(127, 29, 173);
/* oklch */ color: oklch(46.6% 0.211 311.4);
Tailwind
colors: {
  custom: {
    50: '#a967c6',
    500: '#7f1dad',
    950: '#000000',
  },
}
SCSS
$custom: #7f1dad;
$custom-light: #a967c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1dad",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 173
  },
  "hsl": {
    "h": 280.833,
    "s": 71.287,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46599,
    "c": 0.2114,
    "h": 311.4
  },
  "luminance": 0.08408
}

Semantic roles & 50–950 ramp

primary
#7F1DAD
secondary
#7FC95D
accent
#EE3A73
background
#FAF6FC
surface
#F5EBF8
border
#CFC6D1
text
#110713
muted
#807A82

Preview Lab

Preview with #7F1DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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