#7F1CAB#7F1CAB

#7F1CAB is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.4% C 0.210 H 312.0°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7F1CAB
RGBrgb(127, 28, 171)
HSLhsl(282, 72%, 39%)
HSVhsv(282, 84%, 67%)
CMYKcmyk(25.7%, 83.6%, 0%, 32.9%)
CIE-LABlab(34.57, 61.06, -55.15)
CIE-LCHlch(34.57, 82.28, 317.91°)
OKLaboklab(46.37% 0.1409 -0.1564)
OKLCHoklch(46.37% 0.21 312)
XYZxyz(16.5170, 8.2833, 39.2489)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1CAB #48AB1C
analogous
#371CAB #7F1CAB #AB1C90
triadic
#7F1CAB #AB7F1C #1CAB7F
tetradic
#7F1CAB #AB371C #48AB1C #1C90AB
square
#7F1CAB #AB371C #48AB1C #1C90AB
split-complementary
#7F1CAB #90AB1C #1CAB37
monochromatic
#310B42 #581376 #7F1CAB #A528DC #BB5DE4

Accessibility & contrast

On white

7.90
#7F1CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7F1CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1CAB
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1CAB#FFFFFF#000000##FFFFFF
##7F1CAB1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#794266
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f1cab;
/* rgb */ color: rgb(127, 28, 171);
/* oklch */ color: oklch(46.4% 0.210 312.0);
Tailwind
colors: {
  custom: {
    50: '#a967c5',
    500: '#7f1cab',
    950: '#000000',
  },
}
SCSS
$custom: #7f1cab;
$custom-light: #a967c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1cab",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 281.538,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46374,
    "c": 0.21045,
    "h": 312
  },
  "luminance": 0.08283
}

Semantic roles & 50–950 ramp

primary
#7F1CAB
secondary
#7CC95A
accent
#EF3971
background
#FAF6FC
surface
#F5EBF8
border
#CFC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F1CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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