#7F51DA#7F51DA

#7F51DA is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.8% C 0.200 H 294.5°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7F51DA
RGBrgb(127, 81, 218)
HSLhsl(260, 65%, 59%)
HSVhsv(260, 63%, 85%)
CMYKcmyk(41.7%, 62.8%, 0%, 14.5%)
CIE-LABlab(46.26, 49.20, -63.63)
CIE-LCHlch(46.26, 80.43, 307.71°)
OKLaboklab(55.78% 0.0827 -0.1816)
OKLCHoklch(55.78% 0.2 294.5)
XYZxyz(24.3463, 15.4582, 68.0171)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F51DA #ACDA51
analogous
#5167DA #7F51DA #C351DA
triadic
#7F51DA #DA7F51 #51DA7F
tetradic
#7F51DA #DA5167 #ACDA51 #51DAC3
square
#7F51DA #DA5167 #ACDA51 #51DAC3
split-complementary
#7F51DA #DAC351 #67DA51
monochromatic
#451F92 #5E2AC4 #7F51DA #A483E5 #C9B6EF

Accessibility & contrast

On white

5.13
#7F51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7F51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F51DA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F51DA#FFFFFF#000000##FFFFFF
##7F51DA1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDE
Deuteranopia (green-blind)
#006BD7
Tritanopia (blue-blind)
#67708E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f51da;
/* rgb */ color: rgb(127, 81, 218);
/* oklch */ color: oklch(55.8% 0.200 294.5);
Tailwind
colors: {
  custom: {
    50: '#aa84e6',
    500: '#7f51da',
    950: '#000000',
  },
}
SCSS
$custom: #7f51da;
$custom-light: #aa84e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f51da",
  "rgb": {
    "r": 127,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 260.146,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55784,
    "c": 0.19951,
    "h": 294.5
  },
  "luminance": 0.15459
}

Semantic roles & 50–950 ramp

primary
#7F51DA
secondary
#CCDEA8
accent
#E840AF
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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