#7E48DC#7E48DC

#7E48DC is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.6% C 0.213 H 295.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7E48DC
RGBrgb(126, 72, 220)
HSLhsl(262, 68%, 57%)
HSVhsv(262, 67%, 86%)
CMYKcmyk(42.7%, 67.3%, 0%, 13.7%)
CIE-LABlab(44.57, 54.23, -67.51)
CIE-LCHlch(44.57, 86.59, 308.77°)
OKLaboklab(54.59% 0.0905 -0.193)
OKLCHoklch(54.59% 0.213 295.1)
XYZxyz(23.8364, 14.2371, 69.1884)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E48DC #A6DC48
analogous
#485CDC #7E48DC #C848DC
triadic
#7E48DC #DC7E48 #48DC7E
tetradic
#7E48DC #DC485C #A6DC48 #48DCC8
square
#7E48DC #DC485C #A6DC48 #48DCC8
split-complementary
#7E48DC #DCC848 #5CDC48
monochromatic
#451B8E #5E25C2 #7E48DC #A27BE6 #C6AFF0

Accessibility & contrast

On white

5.46
#7E48DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7E48DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E48DC
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E48DC#FFFFFF#000000##FFFFFF
##7E48DC1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE0
Deuteranopia (green-blind)
#0067D9
Tritanopia (blue-blind)
#656C8C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e48dc;
/* rgb */ color: rgb(126, 72, 220);
/* oklch */ color: oklch(54.6% 0.213 295.1);
Tailwind
colors: {
  custom: {
    50: '#aa7fe8',
    500: '#7e48dc',
    950: '#000000',
  },
}
SCSS
$custom: #7e48dc;
$custom-light: #aa7fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e48dc",
  "rgb": {
    "r": 126,
    "g": 72,
    "b": 220
  },
  "hsl": {
    "h": 261.892,
    "s": 67.89,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54592,
    "c": 0.21315,
    "h": 295.1
  },
  "luminance": 0.14238
}

Semantic roles & 50–950 ramp

primary
#7E48DC
secondary
#C8DEA2
accent
#EB3DAB
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E48DC

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

Preview Lab → · Contrast checker → · Palette generator →

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