#7C2BAC#7C2BAC

#7C2BAC is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.196 H 309.4°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7C2BAC
RGBrgb(124, 43, 172)
HSLhsl(278, 60%, 42%)
HSVhsv(278, 75%, 67%)
CMYKcmyk(27.9%, 75%, 0%, 32.5%)
CIE-LABlab(35.97, 55.60, -53.50)
CIE-LCHlch(35.97, 77.16, 316.11°)
OKLaboklab(47.29% 0.1244 -0.1517)
OKLCHoklch(47.29% 0.196 309.4)
XYZxyz(16.6210, 8.9917, 39.8817)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2BAC #5BAC2B
analogous
#3B2BAC #7C2BAC #AC2B9C
triadic
#7C2BAC #AC7C2B #2BAC7C
tetradic
#7C2BAC #AC3B2B #5BAC2B #2B9CAC
square
#7C2BAC #AC3B2B #5BAC2B #2B9CAC
split-complementary
#7C2BAC #9CAC2B #2BAC3B
monochromatic
#35134A #591F7B #7C2BAC #9C44D0 #B675DC

Accessibility & contrast

On white

7.50
#7C2BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7C2BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2BAC
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2BAC#FFFFFF#000000##FFFFFF
##7C2BAC1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0356A9
Tritanopia (blue-blind)
#754A6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2bac;
/* rgb */ color: rgb(124, 43, 172);
/* oklch */ color: oklch(47.3% 0.196 309.4);
Tailwind
colors: {
  custom: {
    50: '#a76dc6',
    500: '#7c2bac',
    950: '#000000',
  },
}
SCSS
$custom: #7c2bac;
$custom-light: #a76dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2bac",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 277.674,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4729,
    "c": 0.1962,
    "h": 309.4
  },
  "luminance": 0.08991
}

Semantic roles & 50–950 ramp

primary
#7C2BAC
secondary
#8EC46F
accent
#E34580
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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