#7E52BC#7E52BC

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

Color values

HEX#7E52BC
RGBrgb(126, 82, 188)
HSLhsl(265, 44%, 53%)
HSVhsv(265, 56%, 74%)
CMYKcmyk(33%, 56.4%, 0%, 26.3%)
CIE-LABlab(44.38, 40.56, -49.37)
CIE-LCHlch(44.38, 63.90, 309.40°)
OKLaboklab(53.76% 0.0812 -0.1397)
OKLCHoklch(53.76% 0.162 300.2)
XYZxyz(20.6964, 14.1009, 49.1986)
Luminance0.1410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52BC #90BC52
analogous
#525BBC #7E52BC #B352BC
triadic
#7E52BC #BC7E52 #52BC7E
tetradic
#7E52BC #BC525B #90BC52 #52BCB3
square
#7E52BC #BC525B #90BC52 #52BCB3
split-complementary
#7E52BC #BCB352 #5BBC52
monochromatic
#44296A #613A97 #7E52BC #9F7ECD #C0AADE

Accessibility & contrast

On white

5.50
#7E52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#7E52BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52BC
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52BC#FFFFFF#000000##FFFFFF
##7E52BC1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2469C0
Deuteranopia (green-blind)
#3468BA
Tritanopia (blue-blind)
#71677F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e52bc;
/* rgb */ color: rgb(126, 82, 188);
/* oklch */ color: oklch(53.8% 0.162 300.2);
Tailwind
colors: {
  custom: {
    50: '#a784d1',
    500: '#7e52bc',
    950: '#000000',
  },
}
SCSS
$custom: #7e52bc;
$custom-light: #a784d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52bc",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 264.906,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53758,
    "c": 0.16158,
    "h": 300.2
  },
  "luminance": 0.14101
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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