#7C2AB6#7C2AB6

#7C2AB6 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.207 H 306.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7C2AB6
RGBrgb(124, 42, 182)
HSLhsl(275, 63%, 44%)
HSVhsv(275, 77%, 71%)
CMYKcmyk(31.9%, 76.9%, 0%, 28.6%)
CIE-LABlab(36.59, 58.21, -58.43)
CIE-LCHlch(36.59, 82.48, 314.89°)
OKLaboklab(47.97% 0.1233 -0.1662)
OKLCHoklch(47.97% 0.207 306.6)
XYZxyz(17.5818, 9.3186, 45.1193)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AB6 #64B62A
analogous
#362AB6 #7C2AB6 #B62AAA
triadic
#7C2AB6 #B67C2A #2AB67C
tetradic
#7C2AB6 #B6362A #64B62A #2AAAB6
square
#7C2AB6 #B6362A #64B62A #2AAAB6
split-complementary
#7C2AB6 #AAB62A #2AB636
monochromatic
#381353 #5A1F84 #7C2AB6 #9B48D5 #B67AE0

Accessibility & contrast

On white

7.33
#7C2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7C2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2AB6
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AB6#FFFFFF#000000##FFFFFF
##7C2AB61.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#724D6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2ab6;
/* rgb */ color: rgb(124, 42, 182);
/* oklch */ color: oklch(48.0% 0.207 306.6);
Tailwind
colors: {
  custom: {
    50: '#a76dcd',
    500: '#7c2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ab6;
$custom-light: #a76dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ab6",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 275.143,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47966,
    "c": 0.20694,
    "h": 306.6
  },
  "luminance": 0.09318
}

Semantic roles & 50–950 ramp

primary
#7C2AB6
secondary
#97C873
accent
#E64286
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7C2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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