#7F1CA0#7F1CA0

#7F1CA0 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.5% C 0.201 H 315.5°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7F1CA0
RGBrgb(127, 28, 160)
HSLhsl(285, 70%, 37%)
HSVhsv(285, 83%, 63%)
CMYKcmyk(20.6%, 82.5%, 0%, 37.3%)
CIE-LABlab(33.73, 58.87, -49.88)
CIE-LCHlch(33.73, 77.16, 319.73°)
OKLaboklab(45.53% 0.1434 -0.1409)
OKLCHoklch(45.53% 0.201 315.5)
XYZxyz(15.5118, 7.8812, 33.9550)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1CA0 #3DA01C
analogous
#3D1CA0 #7F1CA0 #A01C7F
triadic
#7F1CA0 #A07F1C #1CA07F
tetradic
#7F1CA0 #A03D1C #3DA01C #1C7FA0
square
#7F1CA0 #A03D1C #3DA01C #1C7FA0
split-complementary
#7F1CA0 #7FA01C #1CA03D
monochromatic
#2C0A38 #56136C #7F1CA0 #A825D4 #BE55E1

Accessibility & contrast

On white

8.15
#7F1CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F1CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1CA0
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1CA0#FFFFFF#000000##FFFFFF
##7F1CA01.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1ca0;
/* rgb */ color: rgb(127, 28, 160);
/* oklch */ color: oklch(45.5% 0.201 315.5);
Tailwind
colors: {
  custom: {
    50: '#a966bd',
    500: '#7f1ca0',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ca0;
$custom-light: #a966bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ca0",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 285,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45532,
    "c": 0.20099,
    "h": 315.5
  },
  "luminance": 0.07881
}

Semantic roles & 50–950 ramp

primary
#7F1CA0
secondary
#70C453
accent
#ED3B67
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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