#7B52CE#7B52CE

#7B52CE is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.183 H 294.8°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#7B52CE
RGBrgb(123, 82, 206)
HSLhsl(260, 56%, 56%)
HSVhsv(260, 60%, 81%)
CMYKcmyk(40.3%, 60.2%, 0%, 19.2%)
CIE-LABlab(45.22, 44.60, -58.45)
CIE-LCHlch(45.22, 73.52, 307.35°)
OKLaboklab(54.68% 0.077 -0.1665)
OKLCHoklch(54.68% 0.183 294.8)
XYZxyz(22.3233, 14.7013, 60.0420)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B52CE #A5CE52
analogous
#5267CE #7B52CE #B952CE
triadic
#7B52CE #CE7B52 #52CE7B
tetradic
#7B52CE #CE5267 #A5CE52 #52CEB9
square
#7B52CE #CE5267 #A5CE52 #52CEB9
split-complementary
#7B52CE #CEB952 #67CE52
monochromatic
#432581 #5C32B1 #7B52CE #9F82DC #C4B1E9

Accessibility & contrast

On white

5.33
#7B52CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7B52CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B52CE
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B52CE#FFFFFF#000000##FFFFFF
##7B52CE1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#0F69CB
Tritanopia (blue-blind)
#666D88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7b52ce;
/* rgb */ color: rgb(123, 82, 206);
/* oklch */ color: oklch(54.7% 0.183 294.8);
Tailwind
colors: {
  custom: {
    50: '#a784de',
    500: '#7b52ce',
    950: '#000000',
  },
}
SCSS
$custom: #7b52ce;
$custom-light: #a784de;
$custom-dark: #000000;
JSON
{
  "hex": "#7b52ce",
  "rgb": {
    "r": 123,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 259.839,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54675,
    "c": 0.18342,
    "h": 294.8
  },
  "luminance": 0.14702
}

Semantic roles & 50–950 ramp

primary
#7B52CE
secondary
#C7D7A4
accent
#DF49AD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B52CE

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

Preview Lab → · Contrast checker → · Palette generator →

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