#7B48CA#7B48CA

#7B48CA is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.192 H 297.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7B48CA
RGBrgb(123, 72, 202)
HSLhsl(264, 55%, 54%)
HSVhsv(264, 64%, 79%)
CMYKcmyk(39.1%, 64.4%, 0%, 20.8%)
CIE-LABlab(42.93, 48.96, -59.85)
CIE-LCHlch(42.93, 77.33, 309.28°)
OKLaboklab(52.92% 0.0886 -0.1706)
OKLCHoklch(52.92% 0.192 297.4)
XYZxyz(21.1437, 13.1096, 57.2821)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B48CA #97CA48
analogous
#4856CA #7B48CA #BC48CA
triadic
#7B48CA #CA7B48 #48CA7B
tetradic
#7B48CA #CA4856 #97CA48 #48CABC
square
#7B48CA #CA4856 #97CA48 #48CABC
split-complementary
#7B48CA #CABC48 #56CA48
monochromatic
#432276 #5E30A5 #7B48CA #9D77D8 #BFA7E5

Accessibility & contrast

On white

5.80
#7B48CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7B48CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B48CA
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B48CA#FFFFFF#000000##FFFFFF
##7B48CA1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#686683
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b48ca;
/* rgb */ color: rgb(123, 72, 202);
/* oklch */ color: oklch(52.9% 0.192 297.4);
Tailwind
colors: {
  custom: {
    50: '#a77edb',
    500: '#7b48ca',
    950: '#000000',
  },
}
SCSS
$custom: #7b48ca;
$custom-light: #a77edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b48ca",
  "rgb": {
    "r": 123,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 263.538,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52921,
    "c": 0.1922,
    "h": 297.4
  },
  "luminance": 0.1311
}

Semantic roles & 50–950 ramp

primary
#7B48CA
secondary
#BDD39B
accent
#DE49A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B48CA

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

Preview Lab → · Contrast checker → · Palette generator →

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