#7F52CE#7F52CE

#7F52CE is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.1% C 0.184 H 296.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7F52CE
RGBrgb(127, 82, 206)
HSLhsl(262, 56%, 56%)
HSVhsv(262, 60%, 81%)
CMYKcmyk(38.3%, 60.2%, 0%, 19.2%)
CIE-LABlab(45.64, 45.48, -57.76)
CIE-LCHlch(45.64, 73.52, 308.22°)
OKLaboklab(55.07% 0.0823 -0.1643)
OKLCHoklch(55.07% 0.184 296.6)
XYZxyz(22.9074, 15.0024, 60.0694)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52CE #A1CE52
analogous
#5263CE #7F52CE #BD52CE
triadic
#7F52CE #CE7F52 #52CE7F
tetradic
#7F52CE #CE5263 #A1CE52 #52CEBD
square
#7F52CE #CE5263 #A1CE52 #52CEBD
split-complementary
#7F52CE #CEBD52 #63CE52
monochromatic
#462581 #6032B1 #7F52CE #A282DC #C6B1E9

Accessibility & contrast

On white

5.25
#7F52CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7F52CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52CE
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52CE#FFFFFF#000000##FFFFFF
##7F52CE1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD2
Deuteranopia (green-blind)
#196ACB
Tritanopia (blue-blind)
#6C6D88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f52ce;
/* rgb */ color: rgb(127, 82, 206);
/* oklch */ color: oklch(55.1% 0.184 296.6);
Tailwind
colors: {
  custom: {
    50: '#a985de',
    500: '#7f52ce',
    950: '#000000',
  },
}
SCSS
$custom: #7f52ce;
$custom-light: #a985de;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52ce",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 261.774,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55074,
    "c": 0.18377,
    "h": 296.6
  },
  "luminance": 0.15003
}

Semantic roles & 50–950 ramp

primary
#7F52CE
secondary
#C5D7A4
accent
#DF49A9
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F52CE

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

Preview Lab → · Contrast checker → · Palette generator →

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