#7E52DD#7E52DD

#7E52DD is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.1% C 0.202 H 293.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7E52DD
RGBrgb(126, 82, 221)
HSLhsl(259, 67%, 59%)
HSVhsv(259, 63%, 87%)
CMYKcmyk(43%, 62.9%, 0%, 13.3%)
CIE-LABlab(46.57, 49.26, -64.84)
CIE-LCHlch(46.57, 81.43, 307.22°)
OKLaboklab(56.05% 0.0801 -0.1852)
OKLCHoklch(56.05% 0.202 293.4)
XYZxyz(24.6691, 15.6900, 70.1213)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52DD #B1DD52
analogous
#526CDD #7E52DD #C452DD
triadic
#7E52DD #DD7E52 #52DD7E
tetradic
#7E52DD #DD526C #B1DD52 #52DDC4
square
#7E52DD #DD526C #B1DD52 #52DDC4
split-complementary
#7E52DD #DDC452 #6CDD52
monochromatic
#441E97 #5B28CA #7E52DD #A485E7 #CAB8F1

Accessibility & contrast

On white

5.07
#7E52DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7E52DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52DD
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52DD#FFFFFF#000000##FFFFFF
##7E52DD1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E1
Deuteranopia (green-blind)
#006CDA
Tritanopia (blue-blind)
#647290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e52dd;
/* rgb */ color: rgb(126, 82, 221);
/* oklch */ color: oklch(56.1% 0.202 293.4);
Tailwind
colors: {
  custom: {
    50: '#aa85e8',
    500: '#7e52dd',
    950: '#000000',
  },
}
SCSS
$custom: #7e52dd;
$custom-light: #aa85e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52dd",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 221
  },
  "hsl": {
    "h": 258.993,
    "s": 67.15,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56052,
    "c": 0.20172,
    "h": 293.4
  },
  "luminance": 0.15691
}

Semantic roles & 50–950 ramp

primary
#7E52DD
secondary
#CFE0AA
accent
#EA3EB4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E52DD

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

Preview Lab → · Contrast checker → · Palette generator →

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