#7E52BA#7E52BA

#7E52BA is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.6% C 0.159 H 300.7°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7E52BA
RGBrgb(126, 82, 186)
HSLhsl(265, 43%, 53%)
HSVhsv(265, 56%, 73%)
CMYKcmyk(32.3%, 55.9%, 0%, 27.1%)
CIE-LABlab(44.25, 40.05, -48.40)
CIE-LCHlch(44.25, 62.82, 309.60°)
OKLaboklab(53.63% 0.0812 -0.1368)
OKLCHoklch(53.63% 0.159 300.7)
XYZxyz(20.4823, 14.0153, 48.0710)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52BA #8EBA52
analogous
#525ABA #7E52BA #B252BA
triadic
#7E52BA #BA7E52 #52BA7E
tetradic
#7E52BA #BA525A #8EBA52 #52BAB2
square
#7E52BA #BA525A #8EBA52 #52BAB2
split-complementary
#7E52BA #BAB252 #5ABA52
monochromatic
#442A68 #613B94 #7E52BA #9F7ECB #BFAADD

Accessibility & contrast

On white

5.52
#7E52BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7E52BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52BA
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52BA#FFFFFF#000000##FFFFFF
##7E52BA1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2768BD
Deuteranopia (green-blind)
#3668B8
Tritanopia (blue-blind)
#72677E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e52ba;
/* rgb */ color: rgb(126, 82, 186);
/* oklch */ color: oklch(53.6% 0.159 300.7);
Tailwind
colors: {
  custom: {
    50: '#a784cf',
    500: '#7e52ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e52ba;
$custom-light: #a784cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52ba",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 265.385,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53628,
    "c": 0.15911,
    "h": 300.7
  },
  "luminance": 0.14015
}

Semantic roles & 50–950 ramp

primary
#7E52BA
secondary
#B7CA9D
accent
#D3559E
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7E52BA

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

Preview Lab → · Contrast checker → · Palette generator →

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