#7F52CA#7F52CA

#7F52CA is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.8% C 0.179 H 297.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7F52CA
RGBrgb(127, 82, 202)
HSLhsl(263, 53%, 56%)
HSVhsv(263, 59%, 79%)
CMYKcmyk(37.1%, 59.4%, 0%, 20.8%)
CIE-LABlab(45.37, 44.43, -55.88)
CIE-LCHlch(45.37, 71.39, 308.49°)
OKLaboklab(54.8% 0.0825 -0.1588)
OKLCHoklch(54.8% 0.179 297.4)
XYZxyz(22.4277, 14.8105, 57.5428)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52CA #9DCA52
analogous
#5261CA #7F52CA #BB52CA
triadic
#7F52CA #CA7F52 #52CA7F
tetradic
#7F52CA #CA5261 #9DCA52 #52CABB
square
#7F52CA #CA5261 #9DCA52 #52CABB
split-complementary
#7F52CA #CABB52 #61CA52
monochromatic
#46267C #6134AB #7F52CA #A281D8 #C4B0E7

Accessibility & contrast

On white

5.30
#7F52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7F52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52CA
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52CA#FFFFFF#000000##FFFFFF
##7F52CA1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCE
Deuteranopia (green-blind)
#226AC7
Tritanopia (blue-blind)
#6D6C86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f52ca;
/* rgb */ color: rgb(127, 82, 202);
/* oklch */ color: oklch(54.8% 0.179 297.4);
Tailwind
colors: {
  custom: {
    50: '#a984db',
    500: '#7f52ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f52ca;
$custom-light: #a984db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52ca",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 262.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54797,
    "c": 0.17892,
    "h": 297.4
  },
  "luminance": 0.14811
}

Semantic roles & 50–950 ramp

primary
#7F52CA
secondary
#C2D5A3
accent
#DD4BA6
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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