#7E48BE#7E48BE

#7E48BE is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.4% C 0.179 H 301.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7E48BE
RGBrgb(126, 72, 190)
HSLhsl(267, 48%, 51%)
HSVhsv(267, 62%, 75%)
CMYKcmyk(33.7%, 62.1%, 0%, 25.5%)
CIE-LABlab(42.44, 46.54, -53.65)
CIE-LCHlch(42.44, 71.03, 310.94°)
OKLaboklab(52.38% 0.0935 -0.1522)
OKLCHoklch(52.38% 0.179 301.6)
XYZxyz(20.2136, 12.7880, 50.1086)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E48BE #88BE48
analogous
#484DBE #7E48BE #B948BE
triadic
#7E48BE #BE7E48 #48BE7E
tetradic
#7E48BE #BE484D #88BE48 #48BEB9
square
#7E48BE #BE484D #88BE48 #48BEB9
split-complementary
#7E48BE #BEB948 #4DBE48
monochromatic
#432567 #603594 #7E48BE #9E75CE #BEA2DE

Accessibility & contrast

On white

5.90
#7E48BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7E48BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E48BE
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E48BE#FFFFFF#000000##FFFFFF
##7E48BE1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#2164BB
Tritanopia (blue-blind)
#71617C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e48be;
/* rgb */ color: rgb(126, 72, 190);
/* oklch */ color: oklch(52.4% 0.179 301.6);
Tailwind
colors: {
  custom: {
    50: '#a87ed2',
    500: '#7e48be',
    950: '#000000',
  },
}
SCSS
$custom: #7e48be;
$custom-light: #a87ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e48be",
  "rgb": {
    "r": 126,
    "g": 72,
    "b": 190
  },
  "hsl": {
    "h": 267.458,
    "s": 47.581,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52384,
    "c": 0.17867,
    "h": 301.6
  },
  "luminance": 0.12788
}

Semantic roles & 50–950 ramp

primary
#7E48BE
secondary
#B3CB97
accent
#D7519A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E48BE

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

Preview Lab → · Contrast checker → · Palette generator →

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