#7C2ABF#7C2ABF

#7C2ABF is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.7% C 0.216 H 304.2°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7C2ABF
RGBrgb(124, 42, 191)
HSLhsl(273, 64%, 46%)
HSVhsv(273, 78%, 75%)
CMYKcmyk(35.1%, 78%, 0%, 25.1%)
CIE-LABlab(37.30, 60.23, -62.58)
CIE-LCHlch(37.30, 86.85, 313.90°)
OKLaboklab(48.69% 0.1211 -0.1784)
OKLCHoklch(48.69% 0.216 304.2)
XYZxyz(18.5419, 9.7027, 50.1761)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2ABF #6DBF2A
analogous
#312ABF #7C2ABF #BF2AB7
triadic
#7C2ABF #BF7C2A #2ABF7C
tetradic
#7C2ABF #BF312A #6DBF2A #2AB7BF
square
#7C2ABF #BF312A #6DBF2A #2AB7BF
split-complementary
#7C2ABF #B7BF2A #2ABF31
monochromatic
#3B145B #5B1F8D #7C2ABF #9A4ED8 #B780E3

Accessibility & contrast

On white

7.14
#7C2ABF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7C2ABF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2ABF
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2ABF#FFFFFF#000000##FFFFFF
##7C2ABF1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#6F5174
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2abf;
/* rgb */ color: rgb(124, 42, 191);
/* oklch */ color: oklch(48.7% 0.216 304.2);
Tailwind
colors: {
  custom: {
    50: '#a86dd3',
    500: '#7c2abf',
    950: '#000000',
  },
}
SCSS
$custom: #7c2abf;
$custom-light: #a86dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2abf",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 191
  },
  "hsl": {
    "h": 273.02,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48688,
    "c": 0.21562,
    "h": 304.2
  },
  "luminance": 0.09703
}

Semantic roles & 50–950 ramp

primary
#7C2ABF
secondary
#9ECC79
accent
#E7418C
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C2ABF

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

Preview Lab → · Contrast checker → · Palette generator →

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