#7C2FCA#7C2FCA

#7C2FCA is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.222 H 301.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7C2FCA
RGBrgb(124, 47, 202)
HSLhsl(270, 62%, 49%)
HSVhsv(270, 77%, 79%)
CMYKcmyk(38.6%, 76.7%, 0%, 20.8%)
CIE-LABlab(38.87, 60.83, -66.45)
CIE-LCHlch(38.87, 90.09, 312.47°)
OKLaboklab(50.06% 0.1142 -0.1898)
OKLCHoklch(50.06% 0.222 301)
XYZxyz(19.9867, 10.5822, 56.8553)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FCA #7DCA2F
analogous
#2F30CA #7C2FCA #CA2FCA
triadic
#7C2FCA #CA7C2F #2FCA7C
tetradic
#7C2FCA #CA2F30 #7DCA2F #2FCACA
square
#7C2FCA #CA2F30 #7DCA2F #2FCACA
split-complementary
#7C2FCA #CACA2F #30CA2F
monochromatic
#3F1867 #5E2398 #7C2FCA #9B5DD9 #B98FE5

Accessibility & contrast

On white

6.74
#7C2FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7C2FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2FCA
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FCA#FFFFFF#000000##FFFFFF
##7C2FCA1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#6A587C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7c2fca;
/* rgb */ color: rgb(124, 47, 202);
/* oklch */ color: oklch(50.1% 0.222 301.0);
Tailwind
colors: {
  custom: {
    50: '#a970db',
    500: '#7c2fca',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fca;
$custom-light: #a970db;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fca",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 202
  },
  "hsl": {
    "h": 269.806,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50059,
    "c": 0.22154,
    "h": 301
  },
  "luminance": 0.10582
}

Semantic roles & 50–950 ramp

primary
#7C2FCA
secondary
#ABCF86
accent
#E54294
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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