#7F1EA0#7F1EA0

#7F1EA0 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.199 H 315.4°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7F1EA0
RGBrgb(127, 30, 160)
HSLhsl(285, 68%, 37%)
HSVhsv(285, 81%, 63%)
CMYKcmyk(20.6%, 81.3%, 0%, 37.3%)
CIE-LABlab(33.94, 58.27, -49.55)
CIE-LCHlch(33.94, 76.49, 319.63°)
OKLaboklab(45.68% 0.1419 -0.1399)
OKLCHoklch(45.68% 0.199 315.4)
XYZxyz(15.5608, 7.9792, 33.9714)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1EA0 #3FA01E
analogous
#3E1EA0 #7F1EA0 #A01E80
triadic
#7F1EA0 #A07F1E #1EA07F
tetradic
#7F1EA0 #A03E1E #3FA01E #1E80A0
square
#7F1EA0 #A03E1E #3FA01E #1E80A0
split-complementary
#7F1EA0 #80A01E #1EA03E
monochromatic
#2D0B39 #56146C #7F1EA0 #A828D4 #BD59E0

Accessibility & contrast

On white

8.09
#7F1EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F1EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1EA0
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1EA0#FFFFFF#000000##FFFFFF
##7F1EA01.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#18529D
Tritanopia (blue-blind)
#7C3D60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f1ea0;
/* rgb */ color: rgb(127, 30, 160);
/* oklch */ color: oklch(45.7% 0.199 315.4);
Tailwind
colors: {
  custom: {
    50: '#a967bd',
    500: '#7f1ea0',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ea0;
$custom-light: #a967bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ea0",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 160
  },
  "hsl": {
    "h": 284.769,
    "s": 68.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45676,
    "c": 0.19925,
    "h": 315.4
  },
  "luminance": 0.07979
}

Semantic roles & 50–950 ramp

primary
#7F1EA0
secondary
#72C456
accent
#EB3D69
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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