#7D48BA#7D48BA

#7D48BA is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.0% C 0.174 H 302.1°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7D48BA
RGBrgb(125, 72, 186)
HSLhsl(268, 45%, 51%)
HSVhsv(268, 61%, 73%)
CMYKcmyk(32.8%, 61.3%, 0%, 27.1%)
CIE-LABlab(42.06, 45.31, -51.93)
CIE-LCHlch(42.06, 68.92, 311.11°)
OKLaboklab(52% 0.0924 -0.1472)
OKLCHoklch(52% 0.174 302.1)
XYZxyz(19.6357, 12.5398, 47.8308)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D48BA #85BA48
analogous
#484CBA #7D48BA #B648BA
triadic
#7D48BA #BA7D48 #48BA7D
tetradic
#7D48BA #BA484C #85BA48 #48BAB6
square
#7D48BA #BA484C #85BA48 #48BAB6
split-complementary
#7D48BA #BAB648 #4CBA48
monochromatic
#422562 #5F368F #7D48BA #9D74CB #BCA1DC

Accessibility & contrast

On white

5.99
#7D48BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7D48BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D48BA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D48BA#FFFFFF#000000##FFFFFF
##7D48BA1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#2663B7
Tritanopia (blue-blind)
#71607A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d48ba;
/* rgb */ color: rgb(125, 72, 186);
/* oklch */ color: oklch(52.0% 0.174 302.1);
Tailwind
colors: {
  custom: {
    50: '#a77ecf',
    500: '#7d48ba',
    950: '#000000',
  },
}
SCSS
$custom: #7d48ba;
$custom-light: #a77ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d48ba",
  "rgb": {
    "r": 125,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 267.895,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51998,
    "c": 0.1738,
    "h": 302.1
  },
  "luminance": 0.1254
}

Semantic roles & 50–950 ramp

primary
#7D48BA
secondary
#B1C896
accent
#D55398
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7D48BA

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

Preview Lab → · Contrast checker → · Palette generator →

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