#7C2ABD#7C2ABD

#7C2ABD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.214 H 304.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7C2ABD
RGBrgb(124, 42, 189)
HSLhsl(273, 64%, 45%)
HSVhsv(273, 78%, 74%)
CMYKcmyk(34.4%, 77.8%, 0%, 25.9%)
CIE-LABlab(37.14, 59.78, -61.67)
CIE-LCHlch(37.14, 85.88, 314.11°)
OKLaboklab(48.53% 0.1216 -0.1757)
OKLCHoklch(48.53% 0.214 304.7)
XYZxyz(18.3234, 9.6152, 49.0249)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2ABD #6BBD2A
analogous
#322ABD #7C2ABD #BD2AB5
triadic
#7C2ABD #BD7C2A #2ABD7C
tetradic
#7C2ABD #BD322A #6BBD2A #2AB5BD
square
#7C2ABD #BD322A #6BBD2A #2AB5BD
split-complementary
#7C2ABD #B5BD2A #2ABD32
monochromatic
#3A1459 #5B1F8B #7C2ABD #9A4DD7 #B67FE3

Accessibility & contrast

On white

7.18
#7C2ABD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7C2ABD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2ABD
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2ABD#FFFFFF#000000##FFFFFF
##7C2ABD1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#6F5073
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2abd;
/* rgb */ color: rgb(124, 42, 189);
/* oklch */ color: oklch(48.5% 0.214 304.7);
Tailwind
colors: {
  custom: {
    50: '#a86dd2',
    500: '#7c2abd',
    950: '#000000',
  },
}
SCSS
$custom: #7c2abd;
$custom-light: #a86dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2abd",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 189
  },
  "hsl": {
    "h": 273.469,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48525,
    "c": 0.21369,
    "h": 304.7
  },
  "luminance": 0.09615
}

Semantic roles & 50–950 ramp

primary
#7C2ABD
secondary
#9DCB78
accent
#E7418A
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C2ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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