#7C2AB7#7C2AB7

#7C2AB7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.208 H 306.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7C2AB7
RGBrgb(124, 42, 183)
HSLhsl(275, 63%, 44%)
HSVhsv(275, 77%, 72%)
CMYKcmyk(32.2%, 77%, 0%, 28.2%)
CIE-LABlab(36.67, 58.43, -58.90)
CIE-LCHlch(36.67, 82.96, 314.77°)
OKLaboklab(48.05% 0.1231 -0.1676)
OKLCHoklch(48.05% 0.208 306.3)
XYZxyz(17.6855, 9.3601, 45.6655)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AB7 #65B72A
analogous
#362AB7 #7C2AB7 #B72AAC
triadic
#7C2AB7 #B77C2A #2AB77C
tetradic
#7C2AB7 #B7362A #65B72A #2AACB7
square
#7C2AB7 #B7362A #65B72A #2AACB7
split-complementary
#7C2AB7 #ACB72A #2AB736
monochromatic
#391353 #5A1F85 #7C2AB7 #9B49D5 #B67BE1

Accessibility & contrast

On white

7.31
#7C2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7C2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2AB7
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AB7#FFFFFF#000000##FFFFFF
##7C2AB71.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#714E70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2ab7;
/* rgb */ color: rgb(124, 42, 183);
/* oklch */ color: oklch(48.0% 0.208 306.3);
Tailwind
colors: {
  custom: {
    50: '#a76dce',
    500: '#7c2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ab7;
$custom-light: #a76dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ab7",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 274.894,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48045,
    "c": 0.2079,
    "h": 306.3
  },
  "luminance": 0.0936
}

Semantic roles & 50–950 ramp

primary
#7C2AB7
secondary
#97C974
accent
#E64287
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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