#7E48D8#7E48D8

#7E48D8 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.3% C 0.209 H 295.9°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7E48D8
RGBrgb(126, 72, 216)
HSLhsl(263, 65%, 56%)
HSVhsv(263, 67%, 85%)
CMYKcmyk(41.7%, 66.7%, 0%, 15.3%)
CIE-LABlab(44.27, 53.19, -65.71)
CIE-LCHlch(44.27, 84.54, 308.99°)
OKLaboklab(54.28% 0.0911 -0.1877)
OKLCHoklch(54.28% 0.209 295.9)
XYZxyz(23.3129, 14.0277, 66.4318)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E48D8 #A2D848
analogous
#485AD8 #7E48D8 #C648D8
triadic
#7E48D8 #D87E48 #48D87E
tetradic
#7E48D8 #D8485A #A2D848 #48D8C6
square
#7E48D8 #D8485A #A2D848 #48D8C6
split-complementary
#7E48D8 #D8C648 #5AD848
monochromatic
#451D89 #5F28BB #7E48D8 #A27AE3 #C5ADEE

Accessibility & contrast

On white

5.52
#7E48D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#7E48D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E48D8
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E48D8#FFFFFF#000000##FFFFFF
##7E48D81.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADC
Deuteranopia (green-blind)
#0067D5
Tritanopia (blue-blind)
#666A8A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e48d8;
/* rgb */ color: rgb(126, 72, 216);
/* oklch */ color: oklch(54.3% 0.209 295.9);
Tailwind
colors: {
  custom: {
    50: '#aa7ee5',
    500: '#7e48d8',
    950: '#000000',
  },
}
SCSS
$custom: #7e48d8;
$custom-light: #aa7ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e48d8",
  "rgb": {
    "r": 126,
    "g": 72,
    "b": 216
  },
  "hsl": {
    "h": 262.5,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54284,
    "c": 0.20861,
    "h": 295.9
  },
  "luminance": 0.14028
}

Semantic roles & 50–950 ramp

primary
#7E48D8
secondary
#C5DBA0
accent
#E840A9
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E48D8

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

Preview Lab → · Contrast checker → · Palette generator →

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