#7B52AC#7B52AC

#7B52AC is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.4% C 0.141 H 302.9°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7B52AC
RGBrgb(123, 82, 172)
HSLhsl(267, 35%, 50%)
HSVhsv(267, 52%, 67%)
CMYKcmyk(28.5%, 52.3%, 0%, 32.5%)
CIE-LABlab(43.10, 35.71, -42.05)
CIE-LCHlch(43.10, 55.17, 310.34°)
OKLaboklab(52.43% 0.0765 -0.1183)
OKLCHoklch(52.43% 0.141 302.9)
XYZxyz(18.6304, 13.2241, 40.5927)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B52AC #83AC52
analogous
#5256AC #7B52AC #A852AC
triadic
#7B52AC #AC7B52 #52AC7B
tetradic
#7B52AC #AC5256 #83AC52 #52ACA8
square
#7B52AC #AC5256 #83AC52 #52ACA8
split-complementary
#7B52AC #ACA852 #56AC52
monochromatic
#402A59 #5D3E83 #7B52AC #9B7BC0 #BAA5D4

Accessibility & contrast

On white

5.76
#7B52AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7B52AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B52AC
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B52AC#FFFFFF#000000##FFFFFF
##7B52AC1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3465AF
Deuteranopia (green-blind)
#4066AA
Tritanopia (blue-blind)
#726377
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7b52ac;
/* rgb */ color: rgb(123, 82, 172);
/* oklch */ color: oklch(52.4% 0.141 302.9);
Tailwind
colors: {
  custom: {
    50: '#a484c5',
    500: '#7b52ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b52ac;
$custom-light: #a484c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b52ac",
  "rgb": {
    "r": 123,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 267.333,
    "s": 35.433,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52432,
    "c": 0.14091,
    "h": 302.9
  },
  "luminance": 0.13224
}

Semantic roles & 50–950 ramp

primary
#7B52AC
secondary
#AFC199
accent
#CB5C99
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #7B52AC

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

Preview Lab → · Contrast checker → · Palette generator →

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