#7E52BF#7E52BF

#7E52BF is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.0% C 0.165 H 299.4°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7E52BF
RGBrgb(126, 82, 191)
HSLhsl(264, 46%, 54%)
HSVhsv(264, 57%, 75%)
CMYKcmyk(34%, 57.1%, 0%, 25.1%)
CIE-LABlab(44.56, 41.33, -50.82)
CIE-LCHlch(44.56, 65.51, 309.12°)
OKLaboklab(53.95% 0.0813 -0.1439)
OKLCHoklch(53.95% 0.165 299.4)
XYZxyz(21.0232, 14.2316, 50.9195)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52BF #93BF52
analogous
#525CBF #7E52BF #B452BF
triadic
#7E52BF #BF7E52 #52BF7E
tetradic
#7E52BF #BF525C #93BF52 #52BFB4
square
#7E52BF #BF525C #93BF52 #52BFB4
split-complementary
#7E52BF #BFB452 #5CBF52
monochromatic
#45296E #61399B #7E52BF #9F7FD0 #C1ABE0

Accessibility & contrast

On white

5.46
#7E52BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7E52BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52BF
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52BF#FFFFFF#000000##FFFFFF
##7E52BF1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F69C3
Deuteranopia (green-blind)
#3169BD
Tritanopia (blue-blind)
#706880
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e52bf;
/* rgb */ color: rgb(126, 82, 191);
/* oklch */ color: oklch(54.0% 0.165 299.4);
Tailwind
colors: {
  custom: {
    50: '#a784d3',
    500: '#7e52bf',
    950: '#000000',
  },
}
SCSS
$custom: #7e52bf;
$custom-light: #a784d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52bf",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 264.22,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53954,
    "c": 0.16529,
    "h": 299.4
  },
  "luminance": 0.14232
}

Semantic roles & 50–950 ramp

primary
#7E52BF
secondary
#BBCE9F
accent
#D652A1
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7E52BF

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

Preview Lab → · Contrast checker → · Palette generator →

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