#7F159F#7F159F

#7F159F is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.0% C 0.206 H 316.1°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7F159F
RGBrgb(127, 21, 159)
HSLhsl(286, 77%, 35%)
HSVhsv(286, 87%, 62%)
CMYKcmyk(20.1%, 86.8%, 0%, 37.6%)
CIE-LABlab(33.03, 60.51, -50.41)
CIE-LCHlch(33.03, 78.76, 320.20°)
OKLaboklab(45.02% 0.1482 -0.1424)
OKLCHoklch(45.02% 0.206 316.1)
XYZxyz(15.2776, 7.5522, 33.4471)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F159F #359F15
analogous
#3A159F #7F159F #9F157A
triadic
#7F159F #9F7F15 #159F7F
tetradic
#7F159F #9F3A15 #359F15 #157A9F
square
#7F159F #9F3A15 #359F15 #157A9F
split-complementary
#7F159F #7A9F15 #159F3A
monochromatic
#290733 #540E69 #7F159F #AA1CD5 #C248E7

Accessibility & contrast

On white

8.37
#7F159F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7F159F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F159F
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F159F#FFFFFF#000000##FFFFFF
##7F159F1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#10509C
Tritanopia (blue-blind)
#7D395E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f159f;
/* rgb */ color: rgb(127, 21, 159);
/* oklch */ color: oklch(45.0% 0.206 316.1);
Tailwind
colors: {
  custom: {
    50: '#a964bc',
    500: '#7f159f',
    950: '#000000',
  },
}
SCSS
$custom: #7f159f;
$custom-light: #a964bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f159f",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 159
  },
  "hsl": {
    "h": 286.087,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45018,
    "c": 0.20551,
    "h": 316.1
  },
  "luminance": 0.07552
}

Semantic roles & 50–950 ramp

primary
#7F159F
secondary
#66C848
accent
#F33561
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7F159F

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

Preview Lab → · Contrast checker → · Palette generator →

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