#7D48C4#7D48C4

#7D48C4 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.7% C 0.185 H 299.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7D48C4
RGBrgb(125, 72, 196)
HSLhsl(266, 51%, 53%)
HSVhsv(266, 63%, 77%)
CMYKcmyk(36.2%, 63.3%, 0%, 23.1%)
CIE-LABlab(42.73, 47.84, -56.68)
CIE-LCHlch(42.73, 74.17, 310.17°)
OKLaboklab(52.7% 0.0918 -0.1612)
OKLCHoklch(52.7% 0.185 299.7)
XYZxyz(20.7362, 12.9800, 53.6268)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D48C4 #8FC448
analogous
#4851C4 #7D48C4 #BB48C4
triadic
#7D48C4 #C47D48 #48C47D
tetradic
#7D48C4 #C44851 #8FC448 #48C4BB
square
#7D48C4 #C44851 #8FC448 #48C4BB
split-complementary
#7D48C4 #C4BB48 #51C448
monochromatic
#43236E #60329C #7D48C4 #9E76D3 #BFA5E2

Accessibility & contrast

On white

5.84
#7D48C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7D48C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D48C4
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D48C4#FFFFFF#000000##FFFFFF
##7D48C41.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C8
Deuteranopia (green-blind)
#1064C1
Tritanopia (blue-blind)
#6D637F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d48c4;
/* rgb */ color: rgb(125, 72, 196);
/* oklch */ color: oklch(52.7% 0.185 299.7);
Tailwind
colors: {
  custom: {
    50: '#a77ed7',
    500: '#7d48c4',
    950: '#000000',
  },
}
SCSS
$custom: #7d48c4;
$custom-light: #a77ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d48c4",
  "rgb": {
    "r": 125,
    "g": 72,
    "b": 196
  },
  "hsl": {
    "h": 265.645,
    "s": 51.24,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52699,
    "c": 0.18549,
    "h": 299.7
  },
  "luminance": 0.1298
}

Semantic roles & 50–950 ramp

primary
#7D48C4
secondary
#B8CF99
accent
#DB4D9E
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7D48C4

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

Preview Lab → · Contrast checker → · Palette generator →

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