#7C52BA#7C52BA

#7C52BA is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.4% C 0.159 H 299.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7C52BA
RGBrgb(124, 82, 186)
HSLhsl(264, 43%, 53%)
HSVhsv(264, 56%, 73%)
CMYKcmyk(33.3%, 55.9%, 0%, 27.1%)
CIE-LABlab(44.04, 39.55, -48.76)
CIE-LCHlch(44.04, 62.78, 309.05°)
OKLaboklab(53.42% 0.0785 -0.138)
OKLCHoklch(53.42% 0.159 299.7)
XYZxyz(20.1903, 13.8647, 48.0573)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C52BA #90BA52
analogous
#525CBA #7C52BA #B052BA
triadic
#7C52BA #BA7C52 #52BA7C
tetradic
#7C52BA #BA525C #90BA52 #52BAB0
square
#7C52BA #BA525C #90BA52 #52BAB0
split-complementary
#7C52BA #BAB052 #5CBA52
monochromatic
#432A68 #5F3B94 #7C52BA #9D7ECB #BEAADD

Accessibility & contrast

On white

5.57
#7C52BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7C52BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C52BA
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C52BA#FFFFFF#000000##FFFFFF
##7C52BA1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2568BD
Deuteranopia (green-blind)
#3467B8
Tritanopia (blue-blind)
#6F677E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7c52ba;
/* rgb */ color: rgb(124, 82, 186);
/* oklch */ color: oklch(53.4% 0.159 299.7);
Tailwind
colors: {
  custom: {
    50: '#a584cf',
    500: '#7c52ba',
    950: '#000000',
  },
}
SCSS
$custom: #7c52ba;
$custom-light: #a584cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c52ba",
  "rgb": {
    "r": 124,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 264.231,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53419,
    "c": 0.15875,
    "h": 299.7
  },
  "luminance": 0.13865
}

Semantic roles & 50–950 ramp

primary
#7C52BA
secondary
#B8CA9D
accent
#D355A0
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7C52BA

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

Preview Lab → · Contrast checker → · Palette generator →

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