#7C52CB#7C52CB

#7C52CB is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.6% C 0.180 H 295.9°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7C52CB
RGBrgb(124, 82, 203)
HSLhsl(261, 54%, 56%)
HSVhsv(261, 60%, 80%)
CMYKcmyk(38.9%, 59.6%, 0%, 20.4%)
CIE-LABlab(45.12, 44.02, -56.88)
CIE-LCHlch(45.12, 71.92, 307.74°)
OKLaboklab(54.56% 0.0785 -0.1618)
OKLCHoklch(54.56% 0.18 295.9)
XYZxyz(22.1062, 14.6310, 58.1477)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C52CB #A1CB52
analogous
#5264CB #7C52CB #B852CB
triadic
#7C52CB #CB7C52 #52CB7C
tetradic
#7C52CB #CB5264 #A1CB52 #52CBB8
square
#7C52CB #CB5264 #A1CB52 #52CBB8
split-complementary
#7C52CB #CBB852 #64CB52
monochromatic
#44267D #5D34AC #7C52CB #A081D9 #C3B0E7

Accessibility & contrast

On white

5.35
#7C52CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7C52CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C52CB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C52CB#FFFFFF#000000##FFFFFF
##7C52CB1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#1A69C8
Tritanopia (blue-blind)
#686C87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7c52cb;
/* rgb */ color: rgb(124, 82, 203);
/* oklch */ color: oklch(54.6% 0.180 295.9);
Tailwind
colors: {
  custom: {
    50: '#a784dc',
    500: '#7c52cb',
    950: '#000000',
  },
}
SCSS
$custom: #7c52cb;
$custom-light: #a784dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c52cb",
  "rgb": {
    "r": 124,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 260.826,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54564,
    "c": 0.17982,
    "h": 295.9
  },
  "luminance": 0.14631
}

Semantic roles & 50–950 ramp

primary
#7C52CB
secondary
#C4D5A3
accent
#DD4BAA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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