#7C2AB8#7C2AB8

#7C2AB8 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.209 H 306.0°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7C2AB8
RGBrgb(124, 42, 184)
HSLhsl(275, 63%, 44%)
HSVhsv(275, 77%, 72%)
CMYKcmyk(32.6%, 77.2%, 0%, 27.8%)
CIE-LABlab(36.75, 58.65, -59.36)
CIE-LCHlch(36.75, 83.45, 314.66°)
OKLaboklab(48.12% 0.1228 -0.1689)
OKLCHoklch(48.12% 0.209 306)
XYZxyz(17.7900, 9.4019, 46.2156)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AB8 #66B82A
analogous
#352AB8 #7C2AB8 #B82AAD
triadic
#7C2AB8 #B87C2A #2AB87C
tetradic
#7C2AB8 #B8352A #66B82A #2AADB8
square
#7C2AB8 #B8352A #66B82A #2AADB8
split-complementary
#7C2AB8 #ADB82A #2AB835
monochromatic
#391354 #5A1F86 #7C2AB8 #9A4AD6 #B67BE1

Accessibility & contrast

On white

7.29
#7C2AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7C2AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2AB8
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AB8#FFFFFF#000000##FFFFFF
##7C2AB81.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2ab8;
/* rgb */ color: rgb(124, 42, 184);
/* oklch */ color: oklch(48.1% 0.209 306.0);
Tailwind
colors: {
  custom: {
    50: '#a76dce',
    500: '#7c2ab8',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ab8;
$custom-light: #a76dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ab8",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 274.648,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48124,
    "c": 0.20887,
    "h": 306
  },
  "luminance": 0.09402
}

Semantic roles & 50–950 ramp

primary
#7C2AB8
secondary
#98C975
accent
#E64287
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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