#7C2AC9#7C2AC9

#7C2AC9 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.5% C 0.225 H 301.7°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#7C2AC9
RGBrgb(124, 42, 201)
HSLhsl(271, 65%, 48%)
HSVhsv(271, 79%, 79%)
CMYKcmyk(38.3%, 79.1%, 0%, 21.2%)
CIE-LABlab(38.12, 62.51, -67.09)
CIE-LCHlch(38.12, 91.69, 312.98°)
OKLaboklab(49.52% 0.1184 -0.1916)
OKLCHoklch(49.52% 0.225 301.7)
XYZxyz(19.6802, 10.1580, 56.1709)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AC9 #77C92A
analogous
#2C2AC9 #7C2AC9 #C92AC7
triadic
#7C2AC9 #C97C2A #2AC97C
tetradic
#7C2AC9 #C92C2A #77C92A #2AC7C9
square
#7C2AC9 #C92C2A #77C92A #2AC7C9
split-complementary
#7C2AC9 #C7C92A #2AC92C
monochromatic
#3E1564 #5D1F96 #7C2AC9 #9A55DB #B887E6

Accessibility & contrast

On white

6.93
#7C2AC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7C2AC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2AC9
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AC9#FFFFFF#000000##FFFFFF
##7C2AC91.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CD
Deuteranopia (green-blind)
#0059C6
Tritanopia (blue-blind)
#6B567A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7c2ac9;
/* rgb */ color: rgb(124, 42, 201);
/* oklch */ color: oklch(49.5% 0.225 301.7);
Tailwind
colors: {
  custom: {
    50: '#a96edb',
    500: '#7c2ac9',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ac9;
$custom-light: #a96edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ac9",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 201
  },
  "hsl": {
    "h": 270.943,
    "s": 65.432,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49515,
    "c": 0.22528,
    "h": 301.7
  },
  "luminance": 0.10158
}

Semantic roles & 50–950 ramp

primary
#7C2AC9
secondary
#A6D07F
accent
#E83F91
background
#FBF6FD
surface
#F6ECFB
border
#D0C7D4
text
#110815
muted
#807A83

Preview Lab

Preview with #7C2AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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