#7E48BA#7E48BA

#7E48BA is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.1% C 0.174 H 302.6°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7E48BA
RGBrgb(126, 72, 186)
HSLhsl(268, 45%, 51%)
HSVhsv(268, 61%, 73%)
CMYKcmyk(32.3%, 61.3%, 0%, 27.1%)
CIE-LABlab(42.18, 45.55, -51.74)
CIE-LCHlch(42.18, 68.93, 311.36°)
OKLaboklab(52.11% 0.0937 -0.1466)
OKLCHoklch(52.11% 0.174 302.6)
XYZxyz(19.7824, 12.6155, 47.8377)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E48BA #84BA48
analogous
#484BBA #7E48BA #B748BA
triadic
#7E48BA #BA7E48 #48BA7E
tetradic
#7E48BA #BA484B #84BA48 #48BAB7
square
#7E48BA #BA484B #84BA48 #48BAB7
split-complementary
#7E48BA #BAB748 #4BBA48
monochromatic
#422562 #60368F #7E48BA #9D74CB #BDA1DC

Accessibility & contrast

On white

5.96
#7E48BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7E48BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E48BA
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E48BA#FFFFFF#000000##FFFFFF
##7E48BA1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BE
Deuteranopia (green-blind)
#2763B7
Tritanopia (blue-blind)
#72607A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e48ba;
/* rgb */ color: rgb(126, 72, 186);
/* oklch */ color: oklch(52.1% 0.174 302.6);
Tailwind
colors: {
  custom: {
    50: '#a77ecf',
    500: '#7e48ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e48ba;
$custom-light: #a77ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e48ba",
  "rgb": {
    "r": 126,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 268.421,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52108,
    "c": 0.17401,
    "h": 302.6
  },
  "luminance": 0.12616
}

Semantic roles & 50–950 ramp

primary
#7E48BA
secondary
#B0C896
accent
#D55397
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E48BA

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

Preview Lab → · Contrast checker → · Palette generator →

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