#7C1FAC#7C1FAC

#7C1FAC is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.2% C 0.208 H 310.3°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7C1FAC
RGBrgb(124, 31, 172)
HSLhsl(280, 69%, 40%)
HSVhsv(280, 82%, 67%)
CMYKcmyk(27.9%, 82%, 0%, 32.5%)
CIE-LABlab(34.49, 59.88, -55.90)
CIE-LCHlch(34.49, 81.92, 316.97°)
OKLaboklab(46.25% 0.1345 -0.1587)
OKLCHoklch(46.25% 0.208 310.3)
XYZxyz(16.2471, 8.2440, 39.7571)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1FAC #4FAC1F
analogous
#351FAC #7C1FAC #AC1F96
triadic
#7C1FAC #AC7C1F #1FAC7C
tetradic
#7C1FAC #AC351F #4FAC1F #1F96AC
square
#7C1FAC #AC351F #4FAC1F #1F96AC
split-complementary
#7C1FAC #96AC1F #1FAC35
monochromatic
#310C44 #571678 #7C1FAC #9F2FD9 #B763E3

Accessibility & contrast

On white

7.93
#7C1FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7C1FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1FAC
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1FAC#FFFFFF#000000##FFFFFF
##7C1FAC1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#754467
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c1fac;
/* rgb */ color: rgb(124, 31, 172);
/* oklch */ color: oklch(46.2% 0.208 310.3);
Tailwind
colors: {
  custom: {
    50: '#a768c6',
    500: '#7c1fac',
    950: '#000000',
  },
}
SCSS
$custom: #7c1fac;
$custom-light: #a768c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1fac",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 279.574,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46249,
    "c": 0.20801,
    "h": 310.3
  },
  "luminance": 0.08244
}

Semantic roles & 50–950 ramp

primary
#7C1FAC
secondary
#83C85F
accent
#EC3C78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C1FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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