#7B48CB#7B48CB

#7B48CB is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.0% C 0.193 H 297.2°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7B48CB
RGBrgb(123, 72, 203)
HSLhsl(263, 56%, 54%)
HSVhsv(263, 65%, 80%)
CMYKcmyk(39.4%, 64.5%, 0%, 20.4%)
CIE-LABlab(43.00, 49.22, -60.32)
CIE-LCHlch(43.00, 77.85, 309.21°)
OKLaboklab(53% 0.0885 -0.1719)
OKLCHoklch(53% 0.193 297.2)
XYZxyz(21.2625, 13.1571, 57.9077)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B48CB #98CB48
analogous
#4857CB #7B48CB #BD48CB
triadic
#7B48CB #CB7B48 #48CB7B
tetradic
#7B48CB #CB4857 #98CB48 #48CBBD
square
#7B48CB #CB4857 #98CB48 #48CBBD
split-complementary
#7B48CB #CBBD48 #57CB48
monochromatic
#432277 #5E2FA6 #7B48CB #9D78D9 #C0A7E6

Accessibility & contrast

On white

5.78
#7B48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7B48CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B48CB
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B48CB#FFFFFF#000000##FFFFFF
##7B48CB1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#676683
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7b48cb;
/* rgb */ color: rgb(123, 72, 203);
/* oklch */ color: oklch(53.0% 0.193 297.2);
Tailwind
colors: {
  custom: {
    50: '#a77edc',
    500: '#7b48cb',
    950: '#000000',
  },
}
SCSS
$custom: #7b48cb;
$custom-light: #a77edc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b48cb",
  "rgb": {
    "r": 123,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 263.359,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52995,
    "c": 0.19336,
    "h": 297.2
  },
  "luminance": 0.13157
}

Semantic roles & 50–950 ramp

primary
#7B48CB
secondary
#BED39B
accent
#DF49A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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