#7F52DD#7F52DD

#7F52DD is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.1% C 0.202 H 293.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7F52DD
RGBrgb(127, 82, 221)
HSLhsl(259, 67%, 59%)
HSVhsv(259, 63%, 87%)
CMYKcmyk(42.5%, 62.9%, 0%, 13.3%)
CIE-LABlab(46.67, 49.46, -64.67)
CIE-LCHlch(46.67, 81.42, 307.41°)
OKLaboklab(56.15% 0.0814 -0.1846)
OKLCHoklch(56.15% 0.202 293.8)
XYZxyz(24.8173, 15.7664, 70.1282)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52DD #B0DD52
analogous
#526BDD #7F52DD #C452DD
triadic
#7F52DD #DD7F52 #52DD7F
tetradic
#7F52DD #DD526B #B0DD52 #52DDC4
square
#7F52DD #DD526B #B0DD52 #52DDC4
split-complementary
#7F52DD #DDC452 #6BDD52
monochromatic
#451E97 #5C28CA #7F52DD #A585E7 #CBB8F1

Accessibility & contrast

On white

5.06
#7F52DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7F52DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52DD
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52DD#FFFFFF#000000##FFFFFF
##7F52DD1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E1
Deuteranopia (green-blind)
#006CDA
Tritanopia (blue-blind)
#657290
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f52dd;
/* rgb */ color: rgb(127, 82, 221);
/* oklch */ color: oklch(56.1% 0.202 293.8);
Tailwind
colors: {
  custom: {
    50: '#ab85e8',
    500: '#7f52dd',
    950: '#000000',
  },
}
SCSS
$custom: #7f52dd;
$custom-light: #ab85e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52dd",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 221
  },
  "hsl": {
    "h": 259.424,
    "s": 67.15,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56149,
    "c": 0.20177,
    "h": 293.8
  },
  "luminance": 0.15767
}

Semantic roles & 50–950 ramp

primary
#7F52DD
secondary
#CFE0AA
accent
#EA3EB2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F52DD

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

Preview Lab → · Contrast checker → · Palette generator →

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