#7F1EAB#7F1EAB

#7F1EAB is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.5% C 0.209 H 311.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7F1EAB
RGBrgb(127, 30, 171)
HSLhsl(281, 70%, 39%)
HSVhsv(281, 82%, 67%)
CMYKcmyk(25.7%, 82.5%, 0%, 32.9%)
CIE-LABlab(34.76, 60.48, -54.83)
CIE-LCHlch(34.76, 81.64, 317.80°)
OKLaboklab(46.51% 0.1395 -0.1554)
OKLCHoklch(46.51% 0.209 311.9)
XYZxyz(16.5660, 8.3813, 39.2653)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1EAB #4AAB1E
analogous
#391EAB #7F1EAB #AB1E90
triadic
#7F1EAB #AB7F1E #1EAB7F
tetradic
#7F1EAB #AB391E #4AAB1E #1E90AB
square
#7F1EAB #AB391E #4AAB1E #1E90AB
split-complementary
#7F1EAB #90AB1E #1EAB39
monochromatic
#320C43 #581577 #7F1EAB #A42CDA #BA60E3

Accessibility & contrast

On white

7.85
#7F1EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1EAB
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1EAB#FFFFFF#000000##FFFFFF
##7F1EAB1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#794366
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f1eab;
/* rgb */ color: rgb(127, 30, 171);
/* oklch */ color: oklch(46.5% 0.209 311.9);
Tailwind
colors: {
  custom: {
    50: '#a968c5',
    500: '#7f1eab',
    950: '#000000',
  },
}
SCSS
$custom: #7f1eab;
$custom-light: #a968c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1eab",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 171
  },
  "hsl": {
    "h": 281.277,
    "s": 70.149,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46513,
    "c": 0.20883,
    "h": 311.9
  },
  "luminance": 0.08381
}

Semantic roles & 50–950 ramp

primary
#7F1EAB
secondary
#7EC85D
accent
#ED3B72
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F1EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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