#7C2FC7#7C2FC7

#7C2FC7 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.219 H 301.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7C2FC7
RGBrgb(124, 47, 199)
HSLhsl(270, 62%, 48%)
HSVhsv(270, 76%, 78%)
CMYKcmyk(37.7%, 76.4%, 0%, 22%)
CIE-LABlab(38.62, 60.13, -65.11)
CIE-LCHlch(38.62, 88.62, 312.72°)
OKLaboklab(49.81% 0.115 -0.1858)
OKLCHoklch(49.81% 0.219 301.7)
XYZxyz(19.6350, 10.4415, 55.0027)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FC7 #7AC72F
analogous
#302FC7 #7C2FC7 #C72FC6
triadic
#7C2FC7 #C77C2F #2FC77C
tetradic
#7C2FC7 #C7302F #7AC72F #2FC6C7
square
#7C2FC7 #C7302F #7AC72F #2FC6C7
split-complementary
#7C2FC7 #C6C72F #2FC730
monochromatic
#3E1864 #5D2395 #7C2FC7 #9A5BD8 #B98CE4

Accessibility & contrast

On white

6.80
#7C2FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7C2FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2FC7
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FC7#FFFFFF#000000##FFFFFF
##7C2FC71.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#6C577A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c2fc7;
/* rgb */ color: rgb(124, 47, 199);
/* oklch */ color: oklch(49.8% 0.219 301.7);
Tailwind
colors: {
  custom: {
    50: '#a970d9',
    500: '#7c2fc7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fc7;
$custom-light: #a970d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fc7",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 199
  },
  "hsl": {
    "h": 270.395,
    "s": 61.789,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49812,
    "c": 0.21855,
    "h": 301.7
  },
  "luminance": 0.10442
}

Semantic roles & 50–950 ramp

primary
#7C2FC7
secondary
#A8CE84
accent
#E54393
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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