#7D52D7#7D52D7

#7D52D7 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.5% C 0.194 H 294.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7D52D7
RGBrgb(125, 82, 215)
HSLhsl(259, 62%, 58%)
HSVhsv(259, 62%, 84%)
CMYKcmyk(41.9%, 61.9%, 0%, 15.7%)
CIE-LABlab(46.04, 47.45, -62.27)
CIE-LCHlch(46.04, 78.29, 307.30°)
OKLaboklab(55.52% 0.0792 -0.1776)
OKLCHoklch(55.52% 0.194 294)
XYZxyz(23.7372, 15.3003, 65.9794)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D52D7 #ACD752
analogous
#526AD7 #7D52D7 #BF52D7
triadic
#7D52D7 #D77D52 #52D77D
tetradic
#7D52D7 #D7526A #ACD752 #52D7BF
square
#7D52D7 #D7526A #ACD752 #52D7BF
split-complementary
#7D52D7 #D7BF52 #6AD752
monochromatic
#44218E #5C2CC0 #7D52D7 #A284E2 #C8B5EE

Accessibility & contrast

On white

5.17
#7D52D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7D52D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D52D7
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D52D7#FFFFFF#000000##FFFFFF
##7D52D71.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#65708D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d52d7;
/* rgb */ color: rgb(125, 82, 215);
/* oklch */ color: oklch(55.5% 0.194 294.0);
Tailwind
colors: {
  custom: {
    50: '#a985e4',
    500: '#7d52d7',
    950: '#000000',
  },
}
SCSS
$custom: #7d52d7;
$custom-light: #a985e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d52d7",
  "rgb": {
    "r": 125,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 259.398,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.55516,
    "c": 0.19449,
    "h": 294
  },
  "luminance": 0.15301
}

Semantic roles & 50–950 ramp

primary
#7D52D7
secondary
#CCDDA8
accent
#E642B1
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7D52D7

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

Preview Lab → · Contrast checker → · Palette generator →

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