#7D52CC#7D52CC

#7D52CC is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.7% C 0.181 H 296.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7D52CC
RGBrgb(125, 82, 204)
HSLhsl(261, 54%, 56%)
HSVhsv(261, 60%, 80%)
CMYKcmyk(38.7%, 59.8%, 0%, 20%)
CIE-LABlab(45.30, 44.51, -57.17)
CIE-LCHlch(45.30, 72.45, 307.90°)
OKLaboklab(54.73% 0.0798 -0.1626)
OKLCHoklch(54.73% 0.181 296.1)
XYZxyz(22.3710, 14.7538, 58.7842)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D52CC #A1CC52
analogous
#5264CC #7D52CC #BA52CC
triadic
#7D52CC #CC7D52 #52CC7D
tetradic
#7D52CC #CC5264 #A1CC52 #52CCBA
square
#7D52CC #CC5264 #A1CC52 #52CCBA
split-complementary
#7D52CC #CCBA52 #64CC52
monochromatic
#45257E #5E33AE #7D52CC #A181DA #C4B1E8

Accessibility & contrast

On white

5.32
#7D52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7D52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D52CC
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D52CC#FFFFFF#000000##FFFFFF
##7D52CC1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#1A6AC9
Tritanopia (blue-blind)
#6A6D87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7d52cc;
/* rgb */ color: rgb(125, 82, 204);
/* oklch */ color: oklch(54.7% 0.181 296.1);
Tailwind
colors: {
  custom: {
    50: '#a884dc',
    500: '#7d52cc',
    950: '#000000',
  },
}
SCSS
$custom: #7d52cc;
$custom-light: #a884dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d52cc",
  "rgb": {
    "r": 125,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 261.148,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54734,
    "c": 0.18114,
    "h": 296.1
  },
  "luminance": 0.14754
}

Semantic roles & 50–950 ramp

primary
#7D52CC
secondary
#C4D6A4
accent
#DE4AAA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7D52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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