#7F1CA5#7F1CA5

#7F1CA5 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 45.9% C 0.205 H 313.9°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7F1CA5
RGBrgb(127, 28, 165)
HSLhsl(283, 71%, 38%)
HSVhsv(283, 83%, 65%)
CMYKcmyk(23%, 83%, 0%, 35.3%)
CIE-LABlab(34.11, 59.86, -52.29)
CIE-LCHlch(34.11, 79.48, 318.86°)
OKLaboklab(45.91% 0.1423 -0.148)
OKLCHoklch(45.91% 0.205 313.9)
XYZxyz(15.9580, 8.0597, 36.3051)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1CA5 #42A51C
analogous
#3B1CA5 #7F1CA5 #A51C86
triadic
#7F1CA5 #A57F1C #1CA57F
tetradic
#7F1CA5 #A53B1C #42A51C #1C86A5
square
#7F1CA5 #A53B1C #42A51C #1C86A5
split-complementary
#7F1CA5 #86A51C #1CA53B
monochromatic
#2E0A3C #571371 #7F1CA5 #A725D9 #BC59E3

Accessibility & contrast

On white

8.04
#7F1CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7F1CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1CA5
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1CA5#FFFFFF#000000##FFFFFF
##7F1CA51.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#0752A2
Tritanopia (blue-blind)
#7B3F62
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f1ca5;
/* rgb */ color: rgb(127, 28, 165);
/* oklch */ color: oklch(45.9% 0.205 313.9);
Tailwind
colors: {
  custom: {
    50: '#a967c1',
    500: '#7f1ca5',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ca5;
$custom-light: #a967c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ca5",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 165
  },
  "hsl": {
    "h": 283.358,
    "s": 70.984,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4591,
    "c": 0.20528,
    "h": 313.9
  },
  "luminance": 0.08059
}

Semantic roles & 50–950 ramp

primary
#7F1CA5
secondary
#75C656
accent
#EE3A6C
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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