#7F52F2#7F52F2

#7F52F2 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.7% C 0.226 H 290.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7F52F2
RGBrgb(127, 82, 242)
HSLhsl(257, 86%, 64%)
HSVhsv(257, 66%, 95%)
CMYKcmyk(47.5%, 66.1%, 0%, 5.1%)
CIE-LABlab(48.20, 55.12, -74.03)
CIE-LCHlch(48.20, 92.30, 306.67°)
OKLaboklab(57.74% 0.079 -0.2121)
OKLCHoklch(57.74% 0.226 290.4)
XYZxyz(27.7921, 16.9563, 85.7957)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52F2 #C5F252
analogous
#5275F2 #7F52F2 #CF52F2
triadic
#7F52F2 #F27F52 #52F27F
tetradic
#7F52F2 #F25275 #C5F252 #52F2CF
square
#7F52F2 #F25275 #C5F252 #52F2CF
split-complementary
#7F52F2 #F2CF52 #75F252
monochromatic
#3F0EBC #5519EE #7F52F2 #A98BF6 #D3C4FB

Accessibility & contrast

On white

4.78
#7F52F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#7F52F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52F2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52F2#FFFFFF#000000##FFFFFF
##7F52F21.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#5A7A9B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f52f2;
/* rgb */ color: rgb(127, 82, 242);
/* oklch */ color: oklch(57.7% 0.226 290.4);
Tailwind
colors: {
  custom: {
    50: '#ad85f7',
    500: '#7f52f2',
    950: '#000000',
  },
}
SCSS
$custom: #7f52f2;
$custom-light: #ad85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52f2",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 242
  },
  "hsl": {
    "h": 256.875,
    "s": 86.022,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57742,
    "c": 0.22639,
    "h": 290.4
  },
  "luminance": 0.16957
}

Semantic roles & 50–950 ramp

primary
#7F52F2
secondary
#DCECB4
accent
#E303A4
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F52F2

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

Preview Lab → · Contrast checker → · Palette generator →

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