#7F15A1#7F15A1

#7F15A1 is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.2% C 0.207 H 315.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7F15A1
RGBrgb(127, 21, 161)
HSLhsl(285, 77%, 36%)
HSVhsv(285, 87%, 63%)
CMYKcmyk(21.1%, 87%, 0%, 36.9%)
CIE-LABlab(33.18, 60.89, -51.38)
CIE-LCHlch(33.18, 79.67, 319.85°)
OKLaboklab(45.17% 0.1477 -0.1452)
OKLCHoklch(45.17% 0.207 315.5)
XYZxyz(15.4525, 7.6222, 34.3686)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F15A1 #37A115
analogous
#3915A1 #7F15A1 #A1157D
triadic
#7F15A1 #A17F15 #15A17F
tetradic
#7F15A1 #A13915 #37A115 #157DA1
square
#7F15A1 #A13915 #37A115 #157DA1
split-complementary
#7F15A1 #7DA115 #15A139
monochromatic
#2A0735 #540E6B #7F15A1 #AA1CD7 #C149E7

Accessibility & contrast

On white

8.32
#7F15A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7F15A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F15A1
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F15A1#FFFFFF#000000##FFFFFF
##7F15A11.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0A519E
Tritanopia (blue-blind)
#7C3A5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f15a1;
/* rgb */ color: rgb(127, 21, 161);
/* oklch */ color: oklch(45.2% 0.207 315.5);
Tailwind
colors: {
  custom: {
    50: '#a964be',
    500: '#7f15a1',
    950: '#000000',
  },
}
SCSS
$custom: #7f15a1;
$custom-light: #a964be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f15a1",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 285.429,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45171,
    "c": 0.20715,
    "h": 315.5
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#7F15A1
secondary
#68C849
accent
#F33463
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7F15A1

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

Preview Lab → · Contrast checker → · Palette generator →

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