#7C2ACA#7C2ACA

#7C2ACA is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.6% C 0.226 H 301.5°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#7C2ACA
RGBrgb(124, 42, 202)
HSLhsl(271, 66%, 48%)
HSVhsv(271, 79%, 79%)
CMYKcmyk(38.6%, 79.2%, 0%, 20.8%)
CIE-LABlab(38.21, 62.74, -67.53)
CIE-LCHlch(38.21, 92.17, 312.89°)
OKLaboklab(49.6% 0.1182 -0.1929)
OKLCHoklch(49.6% 0.226 301.5)
XYZxyz(19.7982, 10.2052, 56.7924)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2ACA #78CA2A
analogous
#2C2ACA #7C2ACA #CA2AC8
triadic
#7C2ACA #CA7C2A #2ACA7C
tetradic
#7C2ACA #CA2C2A #78CA2A #2AC8CA
square
#7C2ACA #CA2C2A #78CA2A #2AC8CA
split-complementary
#7C2ACA #C8CA2A #2ACA2C
monochromatic
#3E1565 #5D1F97 #7C2ACA #9A55DC #B888E6

Accessibility & contrast

On white

6.91
#7C2ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7C2ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2ACA
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2ACA#FFFFFF#000000##FFFFFF
##7C2ACA1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#6B567B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7c2aca;
/* rgb */ color: rgb(124, 42, 202);
/* oklch */ color: oklch(49.6% 0.226 301.5);
Tailwind
colors: {
  custom: {
    50: '#a96edb',
    500: '#7c2aca',
    950: '#000000',
  },
}
SCSS
$custom: #7c2aca;
$custom-light: #a96edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2aca",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 202
  },
  "hsl": {
    "h": 270.75,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49599,
    "c": 0.22625,
    "h": 301.5
  },
  "luminance": 0.10205
}

Semantic roles & 50–950 ramp

primary
#7C2ACA
secondary
#A7D080
accent
#E93F92
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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