#7C2AB0#7C2AB0

#7C2AB0 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.5% C 0.201 H 308.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7C2AB0
RGBrgb(124, 42, 176)
HSLhsl(277, 61%, 43%)
HSVhsv(277, 76%, 69%)
CMYKcmyk(29.5%, 76.1%, 0%, 31%)
CIE-LABlab(36.13, 56.88, -55.62)
CIE-LCHlch(36.13, 79.55, 315.64°)
OKLaboklab(47.5% 0.1246 -0.1579)
OKLCHoklch(47.5% 0.201 308.3)
XYZxyz(16.9750, 9.0759, 41.9235)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AB0 #5EB02A
analogous
#392AB0 #7C2AB0 #B02AA1
triadic
#7C2AB0 #B07C2A #2AB07C
tetradic
#7C2AB0 #B0392A #5EB02A #2AA1B0
square
#7C2AB0 #B0392A #5EB02A #2AA1B0
split-complementary
#7C2AB0 #A1B02A #2AB039
monochromatic
#36124D #591E7F #7C2AB0 #9B45D3 #B676DE

Accessibility & contrast

On white

7.46
#7C2AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7C2AB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2AB0
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AB0#FFFFFF#000000##FFFFFF
##7C2AB01.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#744B6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2ab0;
/* rgb */ color: rgb(124, 42, 176);
/* oklch */ color: oklch(47.5% 0.201 308.3);
Tailwind
colors: {
  custom: {
    50: '#a76cc8',
    500: '#7c2ab0',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ab0;
$custom-light: #a76cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ab0",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 176
  },
  "hsl": {
    "h": 276.716,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47498,
    "c": 0.20115,
    "h": 308.3
  },
  "luminance": 0.09076
}

Semantic roles & 50–950 ramp

primary
#7C2AB0
secondary
#91C670
accent
#E54382
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C2AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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