#7F1AAC#7F1AAC

#7F1AAC is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.3% C 0.213 H 311.8°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7F1AAC
RGBrgb(127, 26, 172)
HSLhsl(282, 74%, 39%)
HSVhsv(282, 85%, 67%)
CMYKcmyk(26.2%, 84.9%, 0%, 32.5%)
CIE-LABlab(34.46, 61.81, -55.93)
CIE-LCHlch(34.46, 83.36, 317.86°)
OKLaboklab(46.32% 0.1419 -0.1586)
OKLCHoklch(46.32% 0.213 311.8)
XYZxyz(16.5668, 8.2298, 39.7375)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1AAC #47AC1A
analogous
#361AAC #7F1AAC #AC1A90
triadic
#7F1AAC #AC7F1A #1AAC7F
tetradic
#7F1AAC #AC361A #47AC1A #1A90AC
square
#7F1AAC #AC361A #47AC1A #1A90AC
split-complementary
#7F1AAC #90AC1A #1AAC36
monochromatic
#300A42 #581277 #7F1AAC #A525DE #BB5AE6

Accessibility & contrast

On white

7.94
#7F1AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F1AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1AAC
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1AAC#FFFFFF#000000##FFFFFF
##7F1AAC1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#794266
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f1aac;
/* rgb */ color: rgb(127, 26, 172);
/* oklch */ color: oklch(46.3% 0.213 311.8);
Tailwind
colors: {
  custom: {
    50: '#a966c6',
    500: '#7f1aac',
    950: '#000000',
  },
}
SCSS
$custom: #7f1aac;
$custom-light: #a966c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1aac",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 172
  },
  "hsl": {
    "h": 281.507,
    "s": 73.737,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46323,
    "c": 0.21285,
    "h": 311.8
  },
  "luminance": 0.08229
}

Semantic roles & 50–950 ramp

primary
#7F1AAC
secondary
#7BCA58
accent
#F03770
background
#FAF6FC
surface
#F5EBF8
border
#CFC6D1
text
#110713
muted
#807A82

Preview Lab

Preview with #7F1AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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