#7C2AB5#7C2AB5

#7C2AB5 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.206 H 306.8°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#7C2AB5
RGBrgb(124, 42, 181)
HSLhsl(275, 62%, 44%)
HSVhsv(275, 77%, 71%)
CMYKcmyk(31.5%, 76.8%, 0%, 29%)
CIE-LABlab(36.51, 57.98, -57.97)
CIE-LCHlch(36.51, 81.99, 315.01°)
OKLaboklab(47.89% 0.1235 -0.1648)
OKLCHoklch(47.89% 0.206 306.8)
XYZxyz(17.4788, 9.2774, 44.5770)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AB5 #63B52A
analogous
#362AB5 #7C2AB5 #B52AA8
triadic
#7C2AB5 #B57C2A #2AB57C
tetradic
#7C2AB5 #B5362A #63B52A #2AA8B5
square
#7C2AB5 #B5362A #63B52A #2AA8B5
split-complementary
#7C2AB5 #A8B52A #2AB536
monochromatic
#381352 #5A1E83 #7C2AB5 #9B48D4 #B679E0

Accessibility & contrast

On white

7.35
#7C2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2AB5
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AB5#FFFFFF#000000##FFFFFF
##7C2AB51.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#724D6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2ab5;
/* rgb */ color: rgb(124, 42, 181);
/* oklch */ color: oklch(47.9% 0.206 306.8);
Tailwind
colors: {
  custom: {
    50: '#a76dcc',
    500: '#7c2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ab5;
$custom-light: #a76dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ab5",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 275.396,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47887,
    "c": 0.20597,
    "h": 306.8
  },
  "luminance": 0.09277
}

Semantic roles & 50–950 ramp

primary
#7C2AB5
secondary
#96C873
accent
#E54285
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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