#7D52C8#7D52C8

#7D52C8 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.176 H 297.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7D52C8
RGBrgb(125, 82, 200)
HSLhsl(262, 52%, 55%)
HSVhsv(262, 59%, 78%)
CMYKcmyk(37.5%, 59%, 0%, 21.6%)
CIE-LABlab(45.03, 43.45, -55.29)
CIE-LCHlch(45.03, 70.32, 308.16°)
OKLaboklab(54.46% 0.0799 -0.1571)
OKLCHoklch(54.46% 0.176 297)
XYZxyz(21.8974, 14.5643, 56.2899)
Luminance0.1457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D52C8 #9DC852
analogous
#5262C8 #7D52C8 #B852C8
triadic
#7D52C8 #C87D52 #52C87D
tetradic
#7D52C8 #C85262 #9DC852 #52C8B8
square
#7D52C8 #C85262 #9DC852 #52C8B8
split-complementary
#7D52C8 #C8B852 #62C852
monochromatic
#452779 #5F35A8 #7D52C8 #A080D7 #C3AFE6

Accessibility & contrast

On white

5.37
#7D52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7D52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D52C8
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D52C8#FFFFFF#000000##FFFFFF
##7D52C81.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#066BCC
Deuteranopia (green-blind)
#2269C5
Tritanopia (blue-blind)
#6B6B85
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7d52c8;
/* rgb */ color: rgb(125, 82, 200);
/* oklch */ color: oklch(54.5% 0.176 297.0);
Tailwind
colors: {
  custom: {
    50: '#a784d9',
    500: '#7d52c8',
    950: '#000000',
  },
}
SCSS
$custom: #7d52c8;
$custom-light: #a784d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d52c8",
  "rgb": {
    "r": 125,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 261.864,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54457,
    "c": 0.17624,
    "h": 297
  },
  "luminance": 0.14565
}

Semantic roles & 50–950 ramp

primary
#7D52C8
secondary
#C2D4A2
accent
#DB4DA7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7D52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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