#7B48C2#7B48C2

#7B48C2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.3% C 0.183 H 299.2°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7B48C2
RGBrgb(123, 72, 194)
HSLhsl(265, 50%, 52%)
HSVhsv(265, 63%, 76%)
CMYKcmyk(36.6%, 62.9%, 0%, 23.9%)
CIE-LABlab(42.37, 46.89, -56.12)
CIE-LCHlch(42.37, 73.13, 309.88°)
OKLaboklab(52.34% 0.0893 -0.1596)
OKLCHoklch(52.34% 0.183 299.2)
XYZxyz(20.2209, 12.7405, 52.4223)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B48C2 #8FC248
analogous
#4852C2 #7B48C2 #B848C2
triadic
#7B48C2 #C27B48 #48C27B
tetradic
#7B48C2 #C24852 #8FC248 #48C2B8
square
#7B48C2 #C24852 #8FC248 #48C2B8
split-complementary
#7B48C2 #C2B848 #52C248
monochromatic
#42246C #5E339A #7B48C2 #9C76D1 #BDA4E1

Accessibility & contrast

On white

5.92
#7B48C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7B48C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B48C2
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B48C2#FFFFFF#000000##FFFFFF
##7B48C21.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#1163BF
Tritanopia (blue-blind)
#6B637E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b48c2;
/* rgb */ color: rgb(123, 72, 194);
/* oklch */ color: oklch(52.3% 0.183 299.2);
Tailwind
colors: {
  custom: {
    50: '#a67ed5',
    500: '#7b48c2',
    950: '#000000',
  },
}
SCSS
$custom: #7b48c2;
$custom-light: #a67ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b48c2",
  "rgb": {
    "r": 123,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 265.082,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52341,
    "c": 0.18284,
    "h": 299.2
  },
  "luminance": 0.12741
}

Semantic roles & 50–950 ramp

primary
#7B48C2
secondary
#B7CE98
accent
#DA4E9F
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7B48C2

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

Preview Lab → · Contrast checker → · Palette generator →

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