#7B52CA#7B52CA

#7B52CA is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.178 H 295.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7B52CA
RGBrgb(123, 82, 202)
HSLhsl(261, 53%, 56%)
HSVhsv(261, 59%, 79%)
CMYKcmyk(39.1%, 59.4%, 0%, 20.8%)
CIE-LABlab(44.95, 43.53, -56.58)
CIE-LCHlch(44.95, 71.39, 307.57°)
OKLaboklab(54.39% 0.0772 -0.1609)
OKLCHoklch(54.39% 0.179 295.6)
XYZxyz(21.8436, 14.5094, 57.5154)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B52CA #A1CA52
analogous
#5265CA #7B52CA #B752CA
triadic
#7B52CA #CA7B52 #52CA7B
tetradic
#7B52CA #CA5265 #A1CA52 #52CAB7
square
#7B52CA #CA5265 #A1CA52 #52CAB7
split-complementary
#7B52CA #CAB752 #65CA52
monochromatic
#43267C #5D34AB #7B52CA #9F81D8 #C2B0E7

Accessibility & contrast

On white

5.38
#7B52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7B52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B52CA
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B52CA#FFFFFF#000000##FFFFFF
##7B52CA1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#1B69C7
Tritanopia (blue-blind)
#676C86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7b52ca;
/* rgb */ color: rgb(123, 82, 202);
/* oklch */ color: oklch(54.4% 0.178 295.6);
Tailwind
colors: {
  custom: {
    50: '#a684db',
    500: '#7b52ca',
    950: '#000000',
  },
}
SCSS
$custom: #7b52ca;
$custom-light: #a684db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b52ca",
  "rgb": {
    "r": 123,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 260.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54394,
    "c": 0.1785,
    "h": 295.6
  },
  "luminance": 0.1451
}

Semantic roles & 50–950 ramp

primary
#7B52CA
secondary
#C4D5A3
accent
#DD4BAB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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