#7F52CF#7F52CF

#7F52CF is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.1% C 0.185 H 296.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7F52CF
RGBrgb(127, 82, 207)
HSLhsl(262, 57%, 57%)
HSVhsv(262, 60%, 81%)
CMYKcmyk(38.6%, 60.4%, 0%, 18.8%)
CIE-LABlab(45.70, 45.74, -58.23)
CIE-LCHlch(45.70, 74.05, 308.15°)
OKLaboklab(55.14% 0.0823 -0.1657)
OKLCHoklch(55.14% 0.185 296.4)
XYZxyz(23.0293, 15.0512, 60.7112)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52CF #A2CF52
analogous
#5264CF #7F52CF #BE52CF
triadic
#7F52CF #CF7F52 #52CF7F
tetradic
#7F52CF #CF5264 #A2CF52 #52CFBE
square
#7F52CF #CF5264 #A2CF52 #52CFBE
split-complementary
#7F52CF #CFBE52 #64CF52
monochromatic
#462482 #6031B2 #7F52CF #A282DC #C6B2EA

Accessibility & contrast

On white

5.24
#7F52CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7F52CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52CF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52CF#FFFFFF#000000##FFFFFF
##7F52CF1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#176BCC
Tritanopia (blue-blind)
#6B6D89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f52cf;
/* rgb */ color: rgb(127, 82, 207);
/* oklch */ color: oklch(55.1% 0.185 296.4);
Tailwind
colors: {
  custom: {
    50: '#a985de',
    500: '#7f52cf',
    950: '#000000',
  },
}
SCSS
$custom: #7f52cf;
$custom-light: #a985de;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52cf",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 261.6,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55144,
    "c": 0.18498,
    "h": 296.4
  },
  "luminance": 0.15052
}

Semantic roles & 50–950 ramp

primary
#7F52CF
secondary
#C6D8A5
accent
#E048A9
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F52CF

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

Preview Lab → · Contrast checker → · Palette generator →

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