#7B52CD#7B52CD

#7B52CD is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.6% C 0.182 H 295.0°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7B52CD
RGBrgb(123, 82, 205)
HSLhsl(260, 55%, 56%)
HSVhsv(260, 60%, 80%)
CMYKcmyk(40%, 60%, 0%, 19.6%)
CIE-LABlab(45.15, 44.33, -57.98)
CIE-LCHlch(45.15, 72.99, 307.40°)
OKLaboklab(54.6% 0.0771 -0.1651)
OKLCHoklch(54.6% 0.182 295)
XYZxyz(22.2022, 14.6528, 59.4043)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B52CD #A4CD52
analogous
#5267CD #7B52CD #B952CD
triadic
#7B52CD #CD7B52 #52CD7B
tetradic
#7B52CD #CD5267 #A4CD52 #52CDB9
square
#7B52CD #CD5267 #A4CD52 #52CDB9
split-complementary
#7B52CD #CDB952 #67CD52
monochromatic
#432580 #5C33AF #7B52CD #9F81DB #C3B1E8

Accessibility & contrast

On white

5.34
#7B52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7B52CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B52CD
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B52CD#FFFFFF#000000##FFFFFF
##7B52CD1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#1269CA
Tritanopia (blue-blind)
#666D88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7b52cd;
/* rgb */ color: rgb(123, 82, 205);
/* oklch */ color: oklch(54.6% 0.182 295.0);
Tailwind
colors: {
  custom: {
    50: '#a684dd',
    500: '#7b52cd',
    950: '#000000',
  },
}
SCSS
$custom: #7b52cd;
$custom-light: #a684dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b52cd",
  "rgb": {
    "r": 123,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 260,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54604,
    "c": 0.18219,
    "h": 295
  },
  "luminance": 0.14653
}

Semantic roles & 50–950 ramp

primary
#7B52CD
secondary
#C6D7A4
accent
#DE49AD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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