#7E52BB#7E52BB

#7E52BB is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.7% C 0.160 H 300.4°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#7E52BB
RGBrgb(126, 82, 187)
HSLhsl(265, 44%, 53%)
HSVhsv(265, 56%, 73%)
CMYKcmyk(32.6%, 56.1%, 0%, 26.7%)
CIE-LABlab(44.32, 40.30, -48.89)
CIE-LCHlch(44.32, 63.36, 309.50°)
OKLaboklab(53.69% 0.0812 -0.1383)
OKLCHoklch(53.69% 0.16 300.4)
XYZxyz(20.5890, 14.0579, 48.6328)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52BB #8FBB52
analogous
#525ABB #7E52BB #B252BB
triadic
#7E52BB #BB7E52 #52BB7E
tetradic
#7E52BB #BB525A #8FBB52 #52BBB2
square
#7E52BB #BB525A #8FBB52 #52BBB2
split-complementary
#7E52BB #BBB252 #5ABB52
monochromatic
#442969 #613B95 #7E52BB #9F7ECC #C0AADE

Accessibility & contrast

On white

5.51
#7E52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#7E52BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52BB
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52BB#FFFFFF#000000##FFFFFF
##7E52BB1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2568BE
Deuteranopia (green-blind)
#3568B9
Tritanopia (blue-blind)
#71677E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e52bb;
/* rgb */ color: rgb(126, 82, 187);
/* oklch */ color: oklch(53.7% 0.160 300.4);
Tailwind
colors: {
  custom: {
    50: '#a784d0',
    500: '#7e52bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e52bb;
$custom-light: #a784d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52bb",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 265.143,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53693,
    "c": 0.16034,
    "h": 300.4
  },
  "luminance": 0.14058
}

Semantic roles & 50–950 ramp

primary
#7E52BB
secondary
#B8CB9E
accent
#D3549E
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7E52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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