#7F1CA1#7F1CA1

#7F1CA1 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.6% C 0.202 H 315.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7F1CA1
RGBrgb(127, 28, 161)
HSLhsl(285, 70%, 37%)
HSVhsv(285, 83%, 63%)
CMYKcmyk(21.1%, 82.6%, 0%, 36.9%)
CIE-LABlab(33.81, 59.07, -50.36)
CIE-LCHlch(33.81, 77.62, 319.55°)
OKLaboklab(45.61% 0.1432 -0.1423)
OKLCHoklch(45.61% 0.202 315.2)
XYZxyz(15.5996, 7.9163, 34.4176)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1CA1 #3EA11C
analogous
#3D1CA1 #7F1CA1 #A11C80
triadic
#7F1CA1 #A17F1C #1CA17F
tetradic
#7F1CA1 #A13D1C #3EA11C #1C80A1
square
#7F1CA1 #A13D1C #3EA11C #1C80A1
split-complementary
#7F1CA1 #80A11C #1CA13D
monochromatic
#2D0A39 #56136D #7F1CA1 #A825D5 #BE56E2

Accessibility & contrast

On white

8.13
#7F1CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1CA1
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1CA1#FFFFFF#000000##FFFFFF
##7F1CA11.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#13529E
Tritanopia (blue-blind)
#7C3D60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1ca1;
/* rgb */ color: rgb(127, 28, 161);
/* oklch */ color: oklch(45.6% 0.202 315.2);
Tailwind
colors: {
  custom: {
    50: '#a966be',
    500: '#7f1ca1',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ca1;
$custom-light: #a966be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ca1",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 284.662,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45607,
    "c": 0.20184,
    "h": 315.2
  },
  "luminance": 0.07916
}

Semantic roles & 50–950 ramp

primary
#7F1CA1
secondary
#71C554
accent
#ED3B68
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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