#7E48CC#7E48CC

#7E48CC is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.4% C 0.195 H 298.3°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7E48CC
RGBrgb(126, 72, 204)
HSLhsl(265, 56%, 54%)
HSVhsv(265, 65%, 80%)
CMYKcmyk(38.2%, 64.7%, 0%, 20%)
CIE-LABlab(43.40, 50.10, -60.22)
CIE-LCHlch(43.40, 78.34, 309.75°)
OKLaboklab(53.39% 0.0925 -0.1716)
OKLCHoklch(53.39% 0.195 298.3)
XYZxyz(21.8179, 13.4297, 58.5577)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E48CC #96CC48
analogous
#4854CC #7E48CC #C048CC
triadic
#7E48CC #CC7E48 #48CC7E
tetradic
#7E48CC #CC4854 #96CC48 #48CCC0
square
#7E48CC #CC4854 #96CC48 #48CCC0
split-complementary
#7E48CC #CCC048 #54CC48
monochromatic
#452178 #602FA8 #7E48CC #A078D9 #C1A8E7

Accessibility & contrast

On white

5.70
#7E48CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#7E48CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E48CC
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E48CC#FFFFFF#000000##FFFFFF
##7E48CC1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#6C6684
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e48cc;
/* rgb */ color: rgb(126, 72, 204);
/* oklch */ color: oklch(53.4% 0.195 298.3);
Tailwind
colors: {
  custom: {
    50: '#a97edc',
    500: '#7e48cc',
    950: '#000000',
  },
}
SCSS
$custom: #7e48cc;
$custom-light: #a97edc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e48cc",
  "rgb": {
    "r": 126,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 264.545,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53385,
    "c": 0.19489,
    "h": 298.3
  },
  "luminance": 0.1343
}

Semantic roles & 50–950 ramp

primary
#7E48CC
secondary
#BDD49C
accent
#E048A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E48CC

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

Preview Lab → · Contrast checker → · Palette generator →

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