#7F52DC#7F52DC

#7F52DC is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.1% C 0.201 H 294.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7F52DC
RGBrgb(127, 82, 220)
HSLhsl(260, 66%, 59%)
HSVhsv(260, 63%, 86%)
CMYKcmyk(42.3%, 62.7%, 0%, 13.7%)
CIE-LABlab(46.60, 49.20, -64.22)
CIE-LCHlch(46.60, 80.90, 307.45°)
OKLaboklab(56.08% 0.0815 -0.1833)
OKLCHoklch(56.08% 0.201 294)
XYZxyz(24.6845, 15.7133, 69.4287)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52DC #AFDC52
analogous
#526ADC #7F52DC #C452DC
triadic
#7F52DC #DC7F52 #52DC7F
tetradic
#7F52DC #DC526A #AFDC52 #52DCC4
square
#7F52DC #DC526A #AFDC52 #52DCC4
split-complementary
#7F52DC #DCC452 #6ADC52
monochromatic
#451E95 #5D29C8 #7F52DC #A585E6 #CAB8F1

Accessibility & contrast

On white

5.07
#7F52DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7F52DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52DC
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52DC#FFFFFF#000000##FFFFFF
##7F52DC1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#006CD9
Tritanopia (blue-blind)
#667290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f52dc;
/* rgb */ color: rgb(127, 82, 220);
/* oklch */ color: oklch(56.1% 0.201 294.0);
Tailwind
colors: {
  custom: {
    50: '#aa85e8',
    500: '#7f52dc',
    950: '#000000',
  },
}
SCSS
$custom: #7f52dc;
$custom-light: #aa85e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52dc",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 259.565,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56075,
    "c": 0.20058,
    "h": 294
  },
  "luminance": 0.15714
}

Semantic roles & 50–950 ramp

primary
#7F52DC
secondary
#CEE0AA
accent
#E93FB2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F52DC

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

Preview Lab → · Contrast checker → · Palette generator →

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