#7C2FA6#7C2FA6

#7C2FA6 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.3% C 0.186 H 310.8°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7C2FA6
RGBrgb(124, 47, 166)
HSLhsl(279, 56%, 42%)
HSVhsv(279, 72%, 65%)
CMYKcmyk(25.3%, 71.7%, 0%, 34.9%)
CIE-LABlab(36.12, 52.62, -49.66)
CIE-LCHlch(36.12, 72.35, 316.66°)
OKLaboklab(47.26% 0.1214 -0.1404)
OKLCHoklch(47.26% 0.186 310.8)
XYZxyz(16.2103, 9.0717, 36.9661)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FA6 #59A62F
analogous
#412FA6 #7C2FA6 #A62F95
triadic
#7C2FA6 #A67C2F #2FA67C
tetradic
#7C2FA6 #A6412F #59A62F #2F95A6
square
#7C2FA6 #A6412F #59A62F #2F95A6
split-complementary
#7C2FA6 #95A62F #2FA641
monochromatic
#351447 #582176 #7C2FA6 #9C47CB #B677D8

Accessibility & contrast

On white

7.46
#7C2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7C2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FA6
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FA6#FFFFFF#000000##FFFFFF
##7C2FA61.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1C56A3
Tritanopia (blue-blind)
#764967
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2fa6;
/* rgb */ color: rgb(124, 47, 166);
/* oklch */ color: oklch(47.3% 0.186 310.8);
Tailwind
colors: {
  custom: {
    50: '#a66ec1',
    500: '#7c2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fa6;
$custom-light: #a66ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fa6",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 278.824,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47262,
    "c": 0.18563,
    "h": 310.8
  },
  "luminance": 0.09071
}

Semantic roles & 50–950 ramp

primary
#7C2FA6
secondary
#8DC170
accent
#DF497E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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