#7E48DB#7E48DB

#7E48DB is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.5% C 0.212 H 295.3°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7E48DB
RGBrgb(126, 72, 219)
HSLhsl(262, 67%, 57%)
HSVhsv(262, 67%, 86%)
CMYKcmyk(42.5%, 67.1%, 0%, 14.1%)
CIE-LABlab(44.50, 53.97, -67.06)
CIE-LCHlch(44.50, 86.08, 308.82°)
OKLaboklab(54.51% 0.0906 -0.1917)
OKLCHoklch(54.51% 0.212 295.3)
XYZxyz(23.7043, 14.1843, 68.4930)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E48DB #A5DB48
analogous
#485CDB #7E48DB #C848DB
triadic
#7E48DB #DB7E48 #48DB7E
tetradic
#7E48DB #DB485C #A5DB48 #48DBC8
square
#7E48DB #DB485C #A5DB48 #48DBC8
split-complementary
#7E48DB #DBC848 #5CDB48
monochromatic
#451C8D #5E26C0 #7E48DB #A27BE5 #C6AEEF

Accessibility & contrast

On white

5.47
#7E48DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7E48DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E48DB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E48DB#FFFFFF#000000##FFFFFF
##7E48DB1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e48db;
/* rgb */ color: rgb(126, 72, 219);
/* oklch */ color: oklch(54.5% 0.212 295.3);
Tailwind
colors: {
  custom: {
    50: '#aa7fe7',
    500: '#7e48db',
    950: '#000000',
  },
}
SCSS
$custom: #7e48db;
$custom-light: #aa7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e48db",
  "rgb": {
    "r": 126,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 262.041,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54514,
    "c": 0.21202,
    "h": 295.3
  },
  "luminance": 0.14185
}

Semantic roles & 50–950 ramp

primary
#7E48DB
secondary
#C7DDA2
accent
#EA3EAB
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E48DB

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

Preview Lab → · Contrast checker → · Palette generator →

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