#7F52FD#7F52FD

#7F52FD is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.6% C 0.239 H 288.9°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7F52FD
RGBrgb(127, 82, 253)
HSLhsl(256, 98%, 66%)
HSVhsv(256, 68%, 99%)
CMYKcmyk(49.8%, 67.6%, 0%, 0.8%)
CIE-LABlab(49.05, 58.11, -78.79)
CIE-LCHlch(49.05, 97.90, 306.41°)
OKLaboklab(58.61% 0.0774 -0.2261)
OKLCHoklch(58.61% 0.239 288.9)
XYZxyz(29.4942, 17.6371, 94.7597)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52FD #D0FD52
analogous
#527BFD #7F52FD #D452FD
triadic
#7F52FD #FD7F52 #52FD7F
tetradic
#7F52FD #FD527B #D0FD52 #52FDD4
square
#7F52FD #FD527B #D0FD52 #52FDD4
split-complementary
#7F52FD #FDD452 #7BFD52
monochromatic
#3902D2 #5215FC #7F52FD #AC8EFE #D9CBFE

Accessibility & contrast

On white

4.64
#7F52FD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7F52FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52FD
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52FD#FFFFFF#000000##FFFFFF
##7F52FD1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FF
Deuteranopia (green-blind)
#0070FA
Tritanopia (blue-blind)
#527EA1
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f52fd;
/* rgb */ color: rgb(127, 82, 253);
/* oklch */ color: oklch(58.6% 0.239 288.9);
Tailwind
colors: {
  custom: {
    50: '#ae86ff',
    500: '#7f52fd',
    950: '#000000',
  },
}
SCSS
$custom: #7f52fd;
$custom-light: #ae86ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52fd",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 253
  },
  "hsl": {
    "h": 255.789,
    "s": 97.714,
    "l": 65.686
  },
  "oklch": {
    "l": 0.58614,
    "c": 0.23901,
    "h": 288.9
  },
  "luminance": 0.17638
}

Semantic roles & 50–950 ramp

primary
#7F52FD
secondary
#E3F2B9
accent
#E600A9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120B18
muted
#817C86

Preview Lab

Preview with #7F52FD

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

Preview Lab → · Contrast checker → · Palette generator →

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