#7E52BD#7E52BD

#7E52BD is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.8% C 0.163 H 299.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7E52BD
RGBrgb(126, 82, 189)
HSLhsl(265, 45%, 53%)
HSVhsv(265, 57%, 74%)
CMYKcmyk(33.3%, 56.6%, 0%, 25.9%)
CIE-LABlab(44.44, 40.82, -49.86)
CIE-LCHlch(44.44, 64.43, 309.31°)
OKLaboklab(53.82% 0.0812 -0.1411)
OKLCHoklch(53.82% 0.163 299.9)
XYZxyz(20.8046, 14.1442, 49.7683)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52BD #91BD52
analogous
#525BBD #7E52BD #B352BD
triadic
#7E52BD #BD7E52 #52BD7E
tetradic
#7E52BD #BD525B #91BD52 #52BDB3
square
#7E52BD #BD525B #91BD52 #52BDB3
split-complementary
#7E52BD #BDB352 #5BBD52
monochromatic
#44296C #613A98 #7E52BD #9F7ECE #C0ABDF

Accessibility & contrast

On white

5.48
#7E52BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7E52BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52BD
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52BD#FFFFFF#000000##FFFFFF
##7E52BD1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2269C1
Deuteranopia (green-blind)
#3368BB
Tritanopia (blue-blind)
#71687F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e52bd;
/* rgb */ color: rgb(126, 82, 189);
/* oklch */ color: oklch(53.8% 0.163 299.9);
Tailwind
colors: {
  custom: {
    50: '#a784d1',
    500: '#7e52bd',
    950: '#000000',
  },
}
SCSS
$custom: #7e52bd;
$custom-light: #a784d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52bd",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 189
  },
  "hsl": {
    "h": 264.673,
    "s": 44.77,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53823,
    "c": 0.16282,
    "h": 299.9
  },
  "luminance": 0.14144
}

Semantic roles & 50–950 ramp

primary
#7E52BD
secondary
#B9CC9E
accent
#D4539F
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7E52BD

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

Preview Lab → · Contrast checker → · Palette generator →

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