#7F15CA#7F15CA

#7F15CA is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.6% C 0.242 H 303.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7F15CA
RGBrgb(127, 21, 202)
HSLhsl(275, 81%, 44%)
HSVhsv(275, 90%, 79%)
CMYKcmyk(37.1%, 89.6%, 0%, 20.8%)
CIE-LABlab(36.58, 69.16, -70.18)
CIE-LCHlch(36.58, 98.53, 314.58°)
OKLaboklab(48.56% 0.1349 -0.2005)
OKLCHoklch(48.56% 0.242 303.9)
XYZxyz(19.6787, 9.3127, 56.6265)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F15CA #60CA15
analogous
#2415CA #7F15CA #CA15BA
triadic
#7F15CA #CA7F15 #15CA7F
tetradic
#7F15CA #CA2415 #60CA15 #15BACA
square
#7F15CA #CA2415 #60CA15 #15BACA
split-complementary
#7F15CA #BACA15 #15CA24
monochromatic
#39095B #5C0F93 #7F15CA #9E32EA #B86AEF

Accessibility & contrast

On white

7.34
#7F15CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7F15CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F15CA
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F15CA#FFFFFF#000000##FFFFFF
##7F15CA1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#6F4F77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f15ca;
/* rgb */ color: rgb(127, 21, 202);
/* oklch */ color: oklch(48.6% 0.242 303.9);
Tailwind
colors: {
  custom: {
    50: '#ac67db',
    500: '#7f15ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f15ca;
$custom-light: #ac67db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f15ca",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 202
  },
  "hsl": {
    "h": 275.138,
    "s": 81.166,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48562,
    "c": 0.24162,
    "h": 303.9
  },
  "luminance": 0.09313
}

Semantic roles & 50–950 ramp

primary
#7F15CA
secondary
#94D566
accent
#F83083
background
#FBF6FD
surface
#F6EBFB
border
#D0C6D4
text
#110715
muted
#807A83

Preview Lab

Preview with #7F15CA

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

Preview Lab → · Contrast checker → · Palette generator →

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