#7F52E8#7F52E8

#7F52E8 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.0% C 0.215 H 292.0°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7F52E8
RGBrgb(127, 82, 232)
HSLhsl(258, 77%, 62%)
HSVhsv(258, 65%, 91%)
CMYKcmyk(45.3%, 64.7%, 0%, 9%)
CIE-LABlab(47.46, 52.42, -69.62)
CIE-LCHlch(47.46, 87.15, 306.98°)
OKLaboklab(56.97% 0.0803 -0.1992)
OKLCHoklch(56.97% 0.215 292)
XYZxyz(26.3311, 16.3719, 78.1010)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52E8 #BBE852
analogous
#5270E8 #7F52E8 #CA52E8
triadic
#7F52E8 #E87F52 #52E87F
tetradic
#7F52E8 #E85270 #BBE852 #52E8CA
square
#7F52E8 #E85270 #BBE852 #52E8CA
split-complementary
#7F52E8 #E8CA52 #70E852
monochromatic
#4216A9 #581EDF #7F52E8 #A788EF #CFBEF6

Accessibility & contrast

On white

4.91
#7F52E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7F52E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52E8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52E8#FFFFFF#000000##FFFFFF
##7F52E81.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073ED
Deuteranopia (green-blind)
#006EE5
Tritanopia (blue-blind)
#607696
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f52e8;
/* rgb */ color: rgb(127, 82, 232);
/* oklch */ color: oklch(57.0% 0.215 292.0);
Tailwind
colors: {
  custom: {
    50: '#ac85f0',
    500: '#7f52e8',
    950: '#000000',
  },
}
SCSS
$custom: #7f52e8;
$custom-light: #ac85f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52e8",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 258,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56971,
    "c": 0.21474,
    "h": 292
  },
  "luminance": 0.16373
}

Semantic roles & 50–950 ramp

primary
#7F52E8
secondary
#D6E7AF
accent
#D90D9C
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F52E8

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

Preview Lab → · Contrast checker → · Palette generator →

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