#7B48BA#7B48BA

#7B48BA is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.8% C 0.173 H 301.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7B48BA
RGBrgb(123, 72, 186)
HSLhsl(267, 45%, 51%)
HSVhsv(267, 61%, 73%)
CMYKcmyk(33.9%, 61.3%, 0%, 27.1%)
CIE-LABlab(41.83, 44.85, -52.31)
CIE-LCHlch(41.83, 68.91, 310.61°)
OKLaboklab(51.78% 0.0897 -0.1484)
OKLCHoklch(51.78% 0.173 301.2)
XYZxyz(19.3466, 12.3908, 47.8173)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B48BA #87BA48
analogous
#484EBA #7B48BA #B448BA
triadic
#7B48BA #BA7B48 #48BA7B
tetradic
#7B48BA #BA484E #87BA48 #48BAB4
square
#7B48BA #BA484E #87BA48 #48BAB4
split-complementary
#7B48BA #BAB448 #4EBA48
monochromatic
#412562 #5E368F #7B48BA #9B74CB #BBA1DC

Accessibility & contrast

On white

6.04
#7B48BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7B48BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B48BA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B48BA#FFFFFF#000000##FFFFFF
##7B48BA1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#2362B7
Tritanopia (blue-blind)
#6E607A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b48ba;
/* rgb */ color: rgb(123, 72, 186);
/* oklch */ color: oklch(51.8% 0.173 301.2);
Tailwind
colors: {
  custom: {
    50: '#a57dcf',
    500: '#7b48ba',
    950: '#000000',
  },
}
SCSS
$custom: #7b48ba;
$custom-light: #a57dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b48ba",
  "rgb": {
    "r": 123,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 266.842,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51778,
    "c": 0.1734,
    "h": 301.2
  },
  "luminance": 0.12391
}

Semantic roles & 50–950 ramp

primary
#7B48BA
secondary
#B2C896
accent
#D5539B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7B48BA

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

Preview Lab → · Contrast checker → · Palette generator →

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