#7F52C8#7F52C8

#7F52C8 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.176 H 297.9°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#7F52C8
RGBrgb(127, 82, 200)
HSLhsl(263, 52%, 55%)
HSVhsv(263, 59%, 78%)
CMYKcmyk(36.5%, 59%, 0%, 21.6%)
CIE-LABlab(45.24, 43.91, -54.94)
CIE-LCHlch(45.24, 70.33, 308.63°)
OKLaboklab(54.66% 0.0825 -0.156)
OKLCHoklch(54.66% 0.176 297.9)
XYZxyz(22.1924, 14.7164, 56.3037)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52C8 #9BC852
analogous
#5260C8 #7F52C8 #BA52C8
triadic
#7F52C8 #C87F52 #52C87F
tetradic
#7F52C8 #C85260 #9BC852 #52C8BA
square
#7F52C8 #C85260 #9BC852 #52C8BA
split-complementary
#7F52C8 #C8BA52 #60C852
monochromatic
#462779 #6135A8 #7F52C8 #A180D7 #C4AFE6

Accessibility & contrast

On white

5.33
#7F52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7F52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52C8
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52C8#FFFFFF#000000##FFFFFF
##7F52C81.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#096BCC
Deuteranopia (green-blind)
#256AC5
Tritanopia (blue-blind)
#6E6B85
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f52c8;
/* rgb */ color: rgb(127, 82, 200);
/* oklch */ color: oklch(54.7% 0.176 297.9);
Tailwind
colors: {
  custom: {
    50: '#a984d9',
    500: '#7f52c8',
    950: '#000000',
  },
}
SCSS
$custom: #7f52c8;
$custom-light: #a984d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52c8",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 262.881,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54661,
    "c": 0.17648,
    "h": 297.9
  },
  "luminance": 0.14717
}

Semantic roles & 50–950 ramp

primary
#7F52C8
secondary
#C1D4A2
accent
#DB4DA5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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