#7F1BA0#7F1BA0

#7F1BA0 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.5% C 0.202 H 315.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7F1BA0
RGBrgb(127, 27, 160)
HSLhsl(285, 71%, 37%)
HSVhsv(285, 83%, 63%)
CMYKcmyk(20.6%, 83.1%, 0%, 37.3%)
CIE-LABlab(33.64, 59.16, -50.04)
CIE-LCHlch(33.64, 77.48, 319.77°)
OKLaboklab(45.46% 0.1441 -0.1413)
OKLCHoklch(45.46% 0.202 315.6)
XYZxyz(15.4885, 7.8346, 33.9472)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1BA0 #3CA01B
analogous
#3D1BA0 #7F1BA0 #A01B7F
triadic
#7F1BA0 #A07F1B #1BA07F
tetradic
#7F1BA0 #A03D1B #3CA01B #1B7FA0
square
#7F1BA0 #A03D1B #3CA01B #1B7FA0
split-complementary
#7F1BA0 #7FA01B #1BA03D
monochromatic
#2C0937 #55126C #7F1BA0 #A924D4 #BF53E2

Accessibility & contrast

On white

8.18
#7F1BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7F1BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1BA0
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1BA0#FFFFFF#000000##FFFFFF
##7F1BA01.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#15529D
Tritanopia (blue-blind)
#7C3C5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1ba0;
/* rgb */ color: rgb(127, 27, 160);
/* oklch */ color: oklch(45.5% 0.202 315.6);
Tailwind
colors: {
  custom: {
    50: '#a966bd',
    500: '#7f1ba0',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ba0;
$custom-light: #a966bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ba0",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 285.113,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45463,
    "c": 0.20182,
    "h": 315.6
  },
  "luminance": 0.07834
}

Semantic roles & 50–950 ramp

primary
#7F1BA0
secondary
#6EC552
accent
#EE3A67
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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