#7C1FB4#7C1FB4

#7C1FB4 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.9% C 0.215 H 308.0°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7C1FB4
RGBrgb(124, 31, 180)
HSLhsl(277, 71%, 41%)
HSVhsv(277, 83%, 71%)
CMYKcmyk(31.1%, 82.8%, 0%, 29.4%)
CIE-LABlab(35.12, 61.56, -59.64)
CIE-LCHlch(35.12, 85.71, 315.91°)
OKLaboklab(46.89% 0.1323 -0.1697)
OKLCHoklch(46.89% 0.215 308)
XYZxyz(17.0386, 8.5606, 43.9259)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1FB4 #57B41F
analogous
#321FB4 #7C1FB4 #B41FA2
triadic
#7C1FB4 #B47C1F #1FB47C
tetradic
#7C1FB4 #B4321F #57B41F #1FA2B4
square
#7C1FB4 #B4321F #57B41F #1FA2B4
split-complementary
#7C1FB4 #A2B41F #1FB432
monochromatic
#340D4C #581680 #7C1FB4 #9D34DC #B668E5

Accessibility & contrast

On white

7.74
#7C1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7C1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1FB4
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1FB4#FFFFFF#000000##FFFFFF
##7C1FB41.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#73486C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c1fb4;
/* rgb */ color: rgb(124, 31, 180);
/* oklch */ color: oklch(46.9% 0.215 308.0);
Tailwind
colors: {
  custom: {
    50: '#a868cb',
    500: '#7c1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #7c1fb4;
$custom-light: #a868cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1fb4",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 277.45,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46892,
    "c": 0.21517,
    "h": 308
  },
  "luminance": 0.0856
}

Semantic roles & 50–950 ramp

primary
#7C1FB4
secondary
#8BCB64
accent
#ED3A7E
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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