#7B52BB#7B52BB

#7B52BB is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.4% C 0.160 H 298.9°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7B52BB
RGBrgb(123, 82, 187)
HSLhsl(263, 44%, 53%)
HSVhsv(263, 56%, 73%)
CMYKcmyk(34.2%, 56.1%, 0%, 26.7%)
CIE-LABlab(43.99, 39.56, -49.42)
CIE-LCHlch(43.99, 63.31, 308.68°)
OKLaboklab(53.38% 0.0773 -0.1399)
OKLCHoklch(53.38% 0.16 298.9)
XYZxyz(20.1531, 13.8332, 48.6124)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B52BB #92BB52
analogous
#525DBB #7B52BB #B052BB
triadic
#7B52BB #BB7B52 #52BB7B
tetradic
#7B52BB #BB525D #92BB52 #52BBB0
square
#7B52BB #BB525D #92BB52 #52BBB0
split-complementary
#7B52BB #BBB052 #5DBB52
monochromatic
#422969 #5E3B95 #7B52BB #9D7ECC #BEAADE

Accessibility & contrast

On white

5.58
#7B52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7B52BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B52BB
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B52BB#FFFFFF#000000##FFFFFF
##7B52BB1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2368BE
Deuteranopia (green-blind)
#3267B9
Tritanopia (blue-blind)
#6D677E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7b52bb;
/* rgb */ color: rgb(123, 82, 187);
/* oklch */ color: oklch(53.4% 0.160 298.9);
Tailwind
colors: {
  custom: {
    50: '#a584d0',
    500: '#7b52bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b52bb;
$custom-light: #a584d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b52bb",
  "rgb": {
    "r": 123,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 263.429,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53381,
    "c": 0.15984,
    "h": 298.9
  },
  "luminance": 0.13833
}

Semantic roles & 50–950 ramp

primary
#7B52BB
secondary
#B9CB9E
accent
#D354A2
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7B52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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