#7D52C2#7D52C2

#7D52C2 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.0% C 0.169 H 298.3°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7D52C2
RGBrgb(125, 82, 194)
HSLhsl(263, 48%, 54%)
HSVhsv(263, 58%, 76%)
CMYKcmyk(35.6%, 57.7%, 0%, 23.9%)
CIE-LABlab(44.65, 41.87, -52.44)
CIE-LCHlch(44.65, 67.11, 308.61°)
OKLaboklab(54.05% 0.0799 -0.1487)
OKLCHoklch(54.05% 0.169 298.3)
XYZxyz(21.2099, 14.2893, 52.6692)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D52C2 #97C252
analogous
#525FC2 #7D52C2 #B552C2
triadic
#7D52C2 #C27D52 #52C27D
tetradic
#7D52C2 #C2525F #97C252 #52C2B5
square
#7D52C2 #C2525F #97C252 #52C2B5
split-complementary
#7D52C2 #C2B552 #5FC252
monochromatic
#442872 #5F389F #7D52C2 #9F7FD2 #C1ACE2

Accessibility & contrast

On white

5.44
#7D52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7D52C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D52C2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D52C2#FFFFFF#000000##FFFFFF
##7D52C21.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196AC6
Deuteranopia (green-blind)
#2C68BF
Tritanopia (blue-blind)
#6E6982
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7d52c2;
/* rgb */ color: rgb(125, 82, 194);
/* oklch */ color: oklch(54.0% 0.169 298.3);
Tailwind
colors: {
  custom: {
    50: '#a784d5',
    500: '#7d52c2',
    950: '#000000',
  },
}
SCSS
$custom: #7d52c2;
$custom-light: #a784d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d52c2",
  "rgb": {
    "r": 125,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 263.036,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5405,
    "c": 0.16885,
    "h": 298.3
  },
  "luminance": 0.1429
}

Semantic roles & 50–950 ramp

primary
#7D52C2
secondary
#BDD0A0
accent
#D750A4
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7D52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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