#7B52F2#7B52F2

#7B52F2 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.4% C 0.226 H 289.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7B52F2
RGBrgb(123, 82, 242)
HSLhsl(255, 86%, 64%)
HSVhsv(255, 66%, 95%)
CMYKcmyk(49.2%, 66.1%, 0%, 5.1%)
CIE-LABlab(47.82, 54.43, -74.67)
CIE-LCHlch(47.82, 92.40, 306.09°)
OKLaboklab(57.38% 0.0737 -0.2141)
OKLCHoklch(57.38% 0.226 289)
XYZxyz(27.2081, 16.6552, 85.7683)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B52F2 #C9F252
analogous
#5279F2 #7B52F2 #CB52F2
triadic
#7B52F2 #F27B52 #52F27B
tetradic
#7B52F2 #F25279 #C9F252 #52F2CB
square
#7B52F2 #F25279 #C9F252 #52F2CB
split-complementary
#7B52F2 #F2CB52 #79F252
monochromatic
#3B0EBC #5019EE #7B52F2 #A68BF6 #D2C4FB

Accessibility & contrast

On white

4.85
#7B52F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7B52F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B52F2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B52F2#FFFFFF#000000##FFFFFF
##7B52F21.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#527A9B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7b52f2;
/* rgb */ color: rgb(123, 82, 242);
/* oklch */ color: oklch(57.4% 0.226 289.0);
Tailwind
colors: {
  custom: {
    50: '#aa85f7',
    500: '#7b52f2',
    950: '#000000',
  },
}
SCSS
$custom: #7b52f2;
$custom-light: #aa85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b52f2",
  "rgb": {
    "r": 123,
    "g": 82,
    "b": 242
  },
  "hsl": {
    "h": 255.375,
    "s": 86.022,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57376,
    "c": 0.22646,
    "h": 289
  },
  "luminance": 0.16656
}

Semantic roles & 50–950 ramp

primary
#7B52F2
secondary
#DEECB4
accent
#E303A9
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B52F2

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

Preview Lab → · Contrast checker → · Palette generator →

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