#7B52CC#7B52CC

#7B52CC is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.181 H 295.2°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7B52CC
RGBrgb(123, 82, 204)
HSLhsl(260, 54%, 56%)
HSVhsv(260, 60%, 80%)
CMYKcmyk(39.7%, 59.8%, 0%, 20%)
CIE-LABlab(45.09, 44.07, -57.52)
CIE-LCHlch(45.09, 72.46, 307.46°)
OKLaboklab(54.53% 0.0771 -0.1637)
OKLCHoklch(54.53% 0.181 295.2)
XYZxyz(22.0819, 14.6047, 58.7706)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B52CC #A3CC52
analogous
#5266CC #7B52CC #B852CC
triadic
#7B52CC #CC7B52 #52CC7B
tetradic
#7B52CC #CC5266 #A3CC52 #52CCB8
square
#7B52CC #CC5266 #A3CC52 #52CCB8
split-complementary
#7B52CC #CCB852 #66CC52
monochromatic
#43257E #5C33AE #7B52CC #9F81DA #C3B1E8

Accessibility & contrast

On white

5.36
#7B52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7B52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B52CC
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B52CC#FFFFFF#000000##FFFFFF
##7B52CC1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#1569C9
Tritanopia (blue-blind)
#676D87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7b52cc;
/* rgb */ color: rgb(123, 82, 204);
/* oklch */ color: oklch(54.5% 0.181 295.2);
Tailwind
colors: {
  custom: {
    50: '#a684dc',
    500: '#7b52cc',
    950: '#000000',
  },
}
SCSS
$custom: #7b52cc;
$custom-light: #a684dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b52cc",
  "rgb": {
    "r": 123,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 260.164,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54534,
    "c": 0.18096,
    "h": 295.2
  },
  "luminance": 0.14605
}

Semantic roles & 50–950 ramp

primary
#7B52CC
secondary
#C5D6A4
accent
#DE4AAC
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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