#7B52C8#7B52C8

#7B52C8 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.176 H 296.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7B52C8
RGBrgb(123, 82, 200)
HSLhsl(261, 52%, 55%)
HSVhsv(261, 59%, 78%)
CMYKcmyk(38.5%, 59%, 0%, 21.6%)
CIE-LABlab(44.82, 43.00, -55.64)
CIE-LCHlch(44.82, 70.31, 307.70°)
OKLaboklab(54.26% 0.0772 -0.1582)
OKLCHoklch(54.26% 0.176 296)
XYZxyz(21.6083, 14.4153, 56.2763)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B52C8 #9FC852
analogous
#5264C8 #7B52C8 #B652C8
triadic
#7B52C8 #C87B52 #52C87B
tetradic
#7B52C8 #C85264 #9FC852 #52C8B6
square
#7B52C8 #C85264 #9FC852 #52C8B6
split-complementary
#7B52C8 #C8B652 #64C852
monochromatic
#432779 #5D35A8 #7B52C8 #9E80D7 #C2AFE6

Accessibility & contrast

On white

5.41
#7B52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7B52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B52C8
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B52C8#FFFFFF#000000##FFFFFF
##7B52C81.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026BCC
Deuteranopia (green-blind)
#1F68C5
Tritanopia (blue-blind)
#686B85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7b52c8;
/* rgb */ color: rgb(123, 82, 200);
/* oklch */ color: oklch(54.3% 0.176 296.0);
Tailwind
colors: {
  custom: {
    50: '#a684d9',
    500: '#7b52c8',
    950: '#000000',
  },
}
SCSS
$custom: #7b52c8;
$custom-light: #a684d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b52c8",
  "rgb": {
    "r": 123,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 260.847,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54256,
    "c": 0.17604,
    "h": 296
  },
  "luminance": 0.14416
}

Semantic roles & 50–950 ramp

primary
#7B52C8
secondary
#C2D4A2
accent
#DB4DAA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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