#7D48C2#7D48C2

#7D48C2 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.183 H 300.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7D48C2
RGBrgb(125, 72, 194)
HSLhsl(266, 50%, 52%)
HSVhsv(266, 63%, 76%)
CMYKcmyk(35.6%, 62.9%, 0%, 23.9%)
CIE-LABlab(42.60, 47.33, -55.74)
CIE-LCHlch(42.60, 73.12, 310.34°)
OKLaboklab(52.56% 0.092 -0.1584)
OKLCHoklch(52.56% 0.183 300.1)
XYZxyz(20.5100, 12.8896, 52.4359)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D48C2 #8DC248
analogous
#4850C2 #7D48C2 #BA48C2
triadic
#7D48C2 #C27D48 #48C27D
tetradic
#7D48C2 #C24850 #8DC248 #48C2BA
square
#7D48C2 #C24850 #8DC248 #48C2BA
split-complementary
#7D48C2 #C2BA48 #50C248
monochromatic
#43246C #60339A #7D48C2 #9E76D1 #BEA4E1

Accessibility & contrast

On white

5.87
#7D48C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7D48C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D48C2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D48C2#FFFFFF#000000##FFFFFF
##7D48C21.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#1664BF
Tritanopia (blue-blind)
#6E637E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d48c2;
/* rgb */ color: rgb(125, 72, 194);
/* oklch */ color: oklch(52.6% 0.183 300.1);
Tailwind
colors: {
  custom: {
    50: '#a77ed5',
    500: '#7d48c2',
    950: '#000000',
  },
}
SCSS
$custom: #7d48c2;
$custom-light: #a77ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d48c2",
  "rgb": {
    "r": 125,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 266.066,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52556,
    "c": 0.18315,
    "h": 300.1
  },
  "luminance": 0.1289
}

Semantic roles & 50–950 ramp

primary
#7D48C2
secondary
#B6CE98
accent
#DA4E9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7D48C2

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

Preview Lab → · Contrast checker → · Palette generator →

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