#7F1CA8#7F1CA8

#7F1CA8 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.1% C 0.208 H 312.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7F1CA8
RGBrgb(127, 28, 168)
HSLhsl(282, 71%, 38%)
HSVhsv(282, 83%, 66%)
CMYKcmyk(24.4%, 83.3%, 0%, 34.1%)
CIE-LABlab(34.33, 60.46, -53.73)
CIE-LCHlch(34.33, 80.88, 318.37°)
OKLaboklab(46.14% 0.1416 -0.1522)
OKLCHoklch(46.14% 0.208 312.9)
XYZxyz(16.2343, 8.1702, 37.7600)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1CA8 #45A81C
analogous
#391CA8 #7F1CA8 #A81C8B
triadic
#7F1CA8 #A87F1C #1CA87F
tetradic
#7F1CA8 #A8391C #45A81C #1C8BA8
square
#7F1CA8 #A8391C #45A81C #1C8BA8
split-complementary
#7F1CA8 #8BA81C #1CA839
monochromatic
#300B3F #571374 #7F1CA8 #A626DB #BC5BE4

Accessibility & contrast

On white

7.97
#7F1CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7F1CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1CA8
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1CA8#FFFFFF#000000##FFFFFF
##7F1CA81.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#7A4064
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f1ca8;
/* rgb */ color: rgb(127, 28, 168);
/* oklch */ color: oklch(46.1% 0.208 312.9);
Tailwind
colors: {
  custom: {
    50: '#a967c3',
    500: '#7f1ca8',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ca8;
$custom-light: #a967c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ca8",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 168
  },
  "hsl": {
    "h": 282.429,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46141,
    "c": 0.20787,
    "h": 312.9
  },
  "luminance": 0.0817
}

Semantic roles & 50–950 ramp

primary
#7F1CA8
secondary
#79C758
accent
#EE3A6F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F1CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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