#7F51DB#7F51DB

#7F51DB is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 55.9% C 0.201 H 294.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7F51DB
RGBrgb(127, 81, 219)
HSLhsl(260, 66%, 59%)
HSVhsv(260, 63%, 86%)
CMYKcmyk(42%, 63%, 0%, 14.1%)
CIE-LABlab(46.33, 49.47, -64.09)
CIE-LCHlch(46.33, 80.96, 307.66°)
OKLaboklab(55.86% 0.0826 -0.1829)
OKLCHoklch(55.86% 0.201 294.3)
XYZxyz(24.4776, 15.5107, 68.7083)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F51DB #ADDB51
analogous
#5168DB #7F51DB #C451DB
triadic
#7F51DB #DB7F51 #51DB7F
tetradic
#7F51DB #DB5168 #ADDB51 #51DBC4
square
#7F51DB #DB5168 #ADDB51 #51DBC4
split-complementary
#7F51DB #DBC451 #68DB51
monochromatic
#451E93 #5D29C6 #7F51DB #A484E5 #CAB6F0

Accessibility & contrast

On white

5.12
#7F51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7F51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F51DB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F51DB#FFFFFF#000000##FFFFFF
##7F51DB1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#66718F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f51db;
/* rgb */ color: rgb(127, 81, 219);
/* oklch */ color: oklch(55.9% 0.201 294.3);
Tailwind
colors: {
  custom: {
    50: '#aa84e7',
    500: '#7f51db',
    950: '#000000',
  },
}
SCSS
$custom: #7f51db;
$custom-light: #aa84e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f51db",
  "rgb": {
    "r": 127,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 260,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55857,
    "c": 0.2007,
    "h": 294.3
  },
  "luminance": 0.15511
}

Semantic roles & 50–950 ramp

primary
#7F51DB
secondary
#CDDFA9
accent
#E93FB0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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