#7F52BB#7F52BB

#7F52BB is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.8% C 0.161 H 300.9°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7F52BB
RGBrgb(127, 82, 187)
HSLhsl(266, 44%, 53%)
HSVhsv(266, 56%, 73%)
CMYKcmyk(32.1%, 56.1%, 0%, 26.7%)
CIE-LABlab(44.43, 40.55, -48.71)
CIE-LCHlch(44.43, 63.38, 309.78°)
OKLaboklab(53.8% 0.0825 -0.1377)
OKLCHoklch(53.8% 0.161 300.9)
XYZxyz(20.7372, 14.1344, 48.6398)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52BB #8EBB52
analogous
#525ABB #7F52BB #B352BB
triadic
#7F52BB #BB7F52 #52BB7F
tetradic
#7F52BB #BB525A #8EBB52 #52BBB3
square
#7F52BB #BB525A #8EBB52 #52BBB3
split-complementary
#7F52BB #BBB352 #5ABB52
monochromatic
#452969 #613B95 #7F52BB #A07ECC #C0AADE

Accessibility & contrast

On white

5.49
#7F52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7F52BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52BB
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52BB#FFFFFF#000000##FFFFFF
##7F52BB1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2669BE
Deuteranopia (green-blind)
#3668B9
Tritanopia (blue-blind)
#73677E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f52bb;
/* rgb */ color: rgb(127, 82, 187);
/* oklch */ color: oklch(53.8% 0.161 300.9);
Tailwind
colors: {
  custom: {
    50: '#a784d0',
    500: '#7f52bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f52bb;
$custom-light: #a784d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52bb",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 265.714,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53798,
    "c": 0.16053,
    "h": 300.9
  },
  "luminance": 0.14134
}

Semantic roles & 50–950 ramp

primary
#7F52BB
secondary
#B8CB9E
accent
#D3549D
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7F52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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