#7F1CA6#7F1CA6

#7F1CA6 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.0% C 0.206 H 313.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7F1CA6
RGBrgb(127, 28, 166)
HSLhsl(283, 71%, 38%)
HSVhsv(283, 83%, 65%)
CMYKcmyk(23.5%, 83.1%, 0%, 34.9%)
CIE-LABlab(34.18, 60.06, -52.77)
CIE-LCHlch(34.18, 79.95, 318.69°)
OKLaboklab(45.99% 0.1421 -0.1494)
OKLCHoklch(45.99% 0.206 313.6)
XYZxyz(16.0494, 8.0962, 36.7863)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1CA6 #43A61C
analogous
#3A1CA6 #7F1CA6 #A61C88
triadic
#7F1CA6 #A67F1C #1CA67F
tetradic
#7F1CA6 #A63A1C #43A61C #1C88A6
square
#7F1CA6 #A63A1C #43A61C #1C88A6
split-complementary
#7F1CA6 #88A61C #1CA63A
monochromatic
#2F0A3D #571372 #7F1CA6 #A725DA #BC59E3

Accessibility & contrast

On white

8.02
#7F1CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7F1CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1CA6
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1CA6#FFFFFF#000000##FFFFFF
##7F1CA61.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0352A3
Tritanopia (blue-blind)
#7B3F63
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f1ca6;
/* rgb */ color: rgb(127, 28, 166);
/* oklch */ color: oklch(46.0% 0.206 313.6);
Tailwind
colors: {
  custom: {
    50: '#a967c1',
    500: '#7f1ca6',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ca6;
$custom-light: #a967c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ca6",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 166
  },
  "hsl": {
    "h": 283.043,
    "s": 71.134,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45987,
    "c": 0.20614,
    "h": 313.6
  },
  "luminance": 0.08096
}

Semantic roles & 50–950 ramp

primary
#7F1CA6
secondary
#77C757
accent
#EE3A6D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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