#7C1FA8#7C1FA8

#7C1FA8 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 45.9% C 0.204 H 311.5°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7C1FA8
RGBrgb(124, 31, 168)
HSLhsl(281, 69%, 39%)
HSVhsv(281, 82%, 66%)
CMYKcmyk(26.2%, 81.5%, 0%, 34.1%)
CIE-LABlab(34.17, 59.05, -54.01)
CIE-LCHlch(34.17, 80.02, 317.55°)
OKLaboklab(45.93% 0.1354 -0.1531)
OKLCHoklch(45.93% 0.204 311.5)
XYZxyz(15.8687, 8.0926, 37.7643)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1FA8 #4BA81F
analogous
#381FA8 #7C1FA8 #A81F90
triadic
#7C1FA8 #A87C1F #1FA87C
tetradic
#7C1FA8 #A8381F #4BA81F #1F90A8
square
#7C1FA8 #A8381F #4BA81F #1F90A8
split-complementary
#7C1FA8 #90A81F #1FA838
monochromatic
#300C41 #561574 #7C1FA8 #A12CD8 #B860E2

Accessibility & contrast

On white

8.02
#7C1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7C1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1FA8
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1FA8#FFFFFF#000000##FFFFFF
##7C1FA81.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#764265
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c1fa8;
/* rgb */ color: rgb(124, 31, 168);
/* oklch */ color: oklch(45.9% 0.204 311.5);
Tailwind
colors: {
  custom: {
    50: '#a767c3',
    500: '#7c1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7c1fa8;
$custom-light: #a767c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1fa8",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 280.73,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45935,
    "c": 0.20444,
    "h": 311.5
  },
  "luminance": 0.08092
}

Semantic roles & 50–950 ramp

primary
#7C1FA8
secondary
#7FC65D
accent
#EC3C75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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