#7F51DE#7F51DE

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

Color values

HEX#7F51DE
RGBrgb(127, 81, 222)
HSLhsl(260, 68%, 59%)
HSVhsv(260, 64%, 87%)
CMYKcmyk(42.8%, 63.5%, 0%, 12.9%)
CIE-LABlab(46.54, 50.27, -65.45)
CIE-LCHlch(46.54, 82.52, 307.52°)
OKLaboklab(56.08% 0.0824 -0.1869)
OKLCHoklch(56.08% 0.204 293.8)
XYZxyz(24.8761, 15.6701, 70.8071)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F51DE #B0DE51
analogous
#516ADE #7F51DE #C551DE
triadic
#7F51DE #DE7F51 #51DE7F
tetradic
#7F51DE #DE516A #B0DE51 #51DEC5
square
#7F51DE #DE516A #B0DE51 #51DEC5
split-complementary
#7F51DE #DEC551 #6ADE51
monochromatic
#451D98 #5C27CB #7F51DE #A584E8 #CBB8F2

Accessibility & contrast

On white

5.08
#7F51DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7F51DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F51DE
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F51DE#FFFFFF#000000##FFFFFF
##7F51DE1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E2
Deuteranopia (green-blind)
#006CDB
Tritanopia (blue-blind)
#657290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f51de;
/* rgb */ color: rgb(127, 81, 222);
/* oklch */ color: oklch(56.1% 0.204 293.8);
Tailwind
colors: {
  custom: {
    50: '#ab84e9',
    500: '#7f51de',
    950: '#000000',
  },
}
SCSS
$custom: #7f51de;
$custom-light: #ab84e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f51de",
  "rgb": {
    "r": 127,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 259.574,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56079,
    "c": 0.20425,
    "h": 293.8
  },
  "luminance": 0.15671
}

Semantic roles & 50–950 ramp

primary
#7F51DE
secondary
#CFE1AA
accent
#EB3DB2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F51DE

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

Preview Lab → · Contrast checker → · Palette generator →

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