#7F51BF#7F51BF

#7F51BF is a mid, vivid violet. Relative luminance 0.142; OKLCH L 53.9% C 0.167 H 300.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7F51BF
RGBrgb(127, 81, 191)
HSLhsl(265, 46%, 53%)
HSVhsv(265, 58%, 75%)
CMYKcmyk(33.5%, 57.6%, 0%, 25.1%)
CIE-LABlab(44.46, 42.13, -50.98)
CIE-LCHlch(44.46, 66.14, 309.57°)
OKLaboklab(53.9% 0.0838 -0.1444)
OKLCHoklch(53.9% 0.167 300.1)
XYZxyz(21.0965, 14.1583, 50.9015)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F51BF #91BF51
analogous
#515ABF #7F51BF #B651BF
triadic
#7F51BF #BF7F51 #51BF7F
tetradic
#7F51BF #BF515A #91BF51 #51BFB6
square
#7F51BF #BF515A #91BF51 #51BFB6
split-complementary
#7F51BF #BFB651 #5ABF51
monochromatic
#45286D #61399A #7F51BF #A07ECF #C1AAE0

Accessibility & contrast

On white

5.48
#7F51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F51BF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F51BF#FFFFFF#000000##FFFFFF
##7F51BF1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D69C3
Deuteranopia (green-blind)
#3068BC
Tritanopia (blue-blind)
#726780
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f51bf;
/* rgb */ color: rgb(127, 81, 191);
/* oklch */ color: oklch(53.9% 0.167 300.1);
Tailwind
colors: {
  custom: {
    50: '#a884d3',
    500: '#7f51bf',
    950: '#000000',
  },
}
SCSS
$custom: #7f51bf;
$custom-light: #a884d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f51bf",
  "rgb": {
    "r": 127,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 265.091,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53902,
    "c": 0.16695,
    "h": 300.1
  },
  "luminance": 0.14158
}

Semantic roles & 50–950 ramp

primary
#7F51BF
secondary
#BACE9E
accent
#D6529F
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7F51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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