#7E48BF#7E48BF

#7E48BF is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.5% C 0.180 H 301.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7E48BF
RGBrgb(126, 72, 191)
HSLhsl(267, 48%, 52%)
HSVhsv(267, 62%, 75%)
CMYKcmyk(34%, 62.3%, 0%, 25.1%)
CIE-LABlab(42.51, 46.80, -54.13)
CIE-LCHlch(42.51, 71.55, 310.85°)
OKLaboklab(52.45% 0.0935 -0.1536)
OKLCHoklch(52.45% 0.18 301.3)
XYZxyz(20.3233, 12.8318, 50.6862)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E48BF #89BF48
analogous
#484EBF #7E48BF #BA48BF
triadic
#7E48BF #BF7E48 #48BF7E
tetradic
#7E48BF #BF484E #89BF48 #48BFBA
square
#7E48BF #BF484E #89BF48 #48BFBA
split-complementary
#7E48BF #BFBA48 #4EBF48
monochromatic
#432468 #603496 #7E48BF #9E75CF #BEA3DF

Accessibility & contrast

On white

5.89
#7E48BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7E48BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E48BF
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E48BF#FFFFFF#000000##FFFFFF
##7E48BF1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#1F64BC
Tritanopia (blue-blind)
#71627D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e48bf;
/* rgb */ color: rgb(126, 72, 191);
/* oklch */ color: oklch(52.5% 0.180 301.3);
Tailwind
colors: {
  custom: {
    50: '#a87ed3',
    500: '#7e48bf',
    950: '#000000',
  },
}
SCSS
$custom: #7e48bf;
$custom-light: #a87ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e48bf",
  "rgb": {
    "r": 126,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 267.227,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52454,
    "c": 0.17984,
    "h": 301.3
  },
  "luminance": 0.12832
}

Semantic roles & 50–950 ramp

primary
#7E48BF
secondary
#B4CC97
accent
#D8509A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E48BF

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

Preview Lab → · Contrast checker → · Palette generator →

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