#7C1BA7#7C1BA7

#7C1BA7 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.6% C 0.207 H 312.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7C1BA7
RGBrgb(124, 27, 167)
HSLhsl(282, 72%, 38%)
HSVhsv(282, 84%, 65%)
CMYKcmyk(25.7%, 83.8%, 0%, 34.5%)
CIE-LABlab(33.69, 60.04, -54.20)
CIE-LCHlch(33.69, 80.88, 317.93°)
OKLaboklab(45.57% 0.1385 -0.1537)
OKLCHoklch(45.57% 0.207 312)
XYZxyz(15.6779, 7.8594, 37.2429)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1BA7 #46A71B
analogous
#361BA7 #7C1BA7 #A71B8C
triadic
#7C1BA7 #A77C1B #1BA77C
tetradic
#7C1BA7 #A7361B #46A71B #1B8CA7
square
#7C1BA7 #A7361B #46A71B #1B8CA7
split-complementary
#7C1BA7 #8CA71B #1BA736
monochromatic
#2E0A3E #551272 #7C1BA7 #A324DC #B958E4

Accessibility & contrast

On white

8.17
#7C1BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7C1BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1BA7
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1BA7#FFFFFF#000000##FFFFFF
##7C1BA71.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#774063
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c1ba7;
/* rgb */ color: rgb(124, 27, 167);
/* oklch */ color: oklch(45.6% 0.207 312.0);
Tailwind
colors: {
  custom: {
    50: '#a766c2',
    500: '#7c1ba7',
    950: '#000000',
  },
}
SCSS
$custom: #7c1ba7;
$custom-light: #a766c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1ba7",
  "rgb": {
    "r": 124,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 281.571,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45571,
    "c": 0.2069,
    "h": 312
  },
  "luminance": 0.07859
}

Semantic roles & 50–950 ramp

primary
#7C1BA7
secondary
#79C856
accent
#EF3971
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C1BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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