#7B52DC#7B52DC

#7B52DC is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.7% C 0.200 H 292.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7B52DC
RGBrgb(123, 82, 220)
HSLhsl(258, 66%, 59%)
HSVhsv(258, 63%, 86%)
CMYKcmyk(44.1%, 62.7%, 0%, 13.7%)
CIE-LABlab(46.19, 48.39, -64.89)
CIE-LCHlch(46.19, 80.95, 306.71°)
OKLaboklab(55.69% 0.0761 -0.1854)
OKLCHoklch(55.69% 0.2 292.3)
XYZxyz(24.1004, 15.4121, 69.4013)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B52DC #B3DC52
analogous
#526EDC #7B52DC #C052DC
triadic
#7B52DC #DC7B52 #52DC7B
tetradic
#7B52DC #DC526E #B3DC52 #52DCC0
square
#7B52DC #DC526E #B3DC52 #52DCC0
split-complementary
#7B52DC #DCC052 #6EDC52
monochromatic
#421E95 #5829C8 #7B52DC #A285E6 #C9B8F1

Accessibility & contrast

On white

5.14
#7B52DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7B52DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B52DC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B52DC#FFFFFF#000000##FFFFFF
##7B52DC1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#5F728F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b52dc;
/* rgb */ color: rgb(123, 82, 220);
/* oklch */ color: oklch(55.7% 0.200 292.3);
Tailwind
colors: {
  custom: {
    50: '#a885e8',
    500: '#7b52dc',
    950: '#000000',
  },
}
SCSS
$custom: #7b52dc;
$custom-light: #a885e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b52dc",
  "rgb": {
    "r": 123,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 257.826,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.55689,
    "c": 0.20043,
    "h": 292.3
  },
  "luminance": 0.15413
}

Semantic roles & 50–950 ramp

primary
#7B52DC
secondary
#D0E0AA
accent
#E93FB7
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7B52DC

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

Preview Lab → · Contrast checker → · Palette generator →

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