#7C1FA6#7C1FA6

#7C1FA6 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.8% C 0.203 H 312.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7C1FA6
RGBrgb(124, 31, 166)
HSLhsl(281, 69%, 39%)
HSVhsv(281, 81%, 65%)
CMYKcmyk(25.3%, 81.3%, 0%, 34.9%)
CIE-LABlab(34.02, 58.64, -53.06)
CIE-LCHlch(34.02, 79.08, 317.86°)
OKLaboklab(45.78% 0.1359 -0.1503)
OKLCHoklch(45.78% 0.203 312.1)
XYZxyz(15.6838, 8.0187, 36.7906)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1FA6 #49A61F
analogous
#381FA6 #7C1FA6 #A61F8C
triadic
#7C1FA6 #A67C1F #1FA67C
tetradic
#7C1FA6 #A6381F #49A61F #1F8CA6
square
#7C1FA6 #A6381F #49A61F #1F8CA6
split-complementary
#7C1FA6 #8CA61F #1FA638
monochromatic
#2F0C3F #551572 #7C1FA6 #A22BD7 #B85EE1

Accessibility & contrast

On white

8.07
#7C1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7C1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1FA6
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1FA6#FFFFFF#000000##FFFFFF
##7C1FA61.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#774164
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c1fa6;
/* rgb */ color: rgb(124, 31, 166);
/* oklch */ color: oklch(45.8% 0.203 312.1);
Tailwind
colors: {
  custom: {
    50: '#a767c1',
    500: '#7c1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7c1fa6;
$custom-light: #a767c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1fa6",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 281.333,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4578,
    "c": 0.20265,
    "h": 312.1
  },
  "luminance": 0.08018
}

Semantic roles & 50–950 ramp

primary
#7C1FA6
secondary
#7CC55B
accent
#EB3C73
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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