#7E52B1#7E52B1

#7E52B1 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.1% C 0.148 H 303.1°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#7E52B1
RGBrgb(126, 82, 177)
HSLhsl(268, 38%, 51%)
HSVhsv(268, 54%, 69%)
CMYKcmyk(28.8%, 53.7%, 0%, 30.6%)
CIE-LABlab(43.72, 37.77, -43.99)
CIE-LCHlch(43.72, 57.98, 310.65°)
OKLaboklab(53.06% 0.0808 -0.1239)
OKLCHoklch(53.06% 0.148 303.1)
XYZxyz(19.5555, 13.6445, 43.1899)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52B1 #85B152
analogous
#5255B1 #7E52B1 #AD52B1
triadic
#7E52B1 #B17E52 #52B17E
tetradic
#7E52B1 #B15255 #85B152 #52B1AD
square
#7E52B1 #B15255 #85B152 #52B1AD
split-complementary
#7E52B1 #B1AD52 #55B152
monochromatic
#422A5E #603D88 #7E52B1 #9D7CC4 #BDA6D7

Accessibility & contrast

On white

5.63
#7E52B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#7E52B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52B1
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52B1#FFFFFF#000000##FFFFFF
##7E52B11.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3166B4
Deuteranopia (green-blind)
#3F67AF
Tritanopia (blue-blind)
#75647A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e52b1;
/* rgb */ color: rgb(126, 82, 177);
/* oklch */ color: oklch(53.1% 0.148 303.1);
Tailwind
colors: {
  custom: {
    50: '#a684c9',
    500: '#7e52b1',
    950: '#000000',
  },
}
SCSS
$custom: #7e52b1;
$custom-light: #a684c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52b1",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 177
  },
  "hsl": {
    "h": 267.789,
    "s": 37.849,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5306,
    "c": 0.14791,
    "h": 303.1
  },
  "luminance": 0.13645
}

Semantic roles & 50–950 ramp

primary
#7E52B1
secondary
#B1C49A
accent
#CE5A98
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #7E52B1

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

Preview Lab → · Contrast checker → · Palette generator →

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