#7D51BF#7D51BF

#7D51BF is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.7% C 0.167 H 299.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7D51BF
RGBrgb(125, 81, 191)
HSLhsl(264, 46%, 53%)
HSVhsv(264, 58%, 75%)
CMYKcmyk(34.6%, 57.6%, 0%, 25.1%)
CIE-LABlab(44.24, 41.65, -51.34)
CIE-LCHlch(44.24, 66.11, 309.05°)
OKLaboklab(53.69% 0.0812 -0.1455)
OKLCHoklch(53.69% 0.167 299.2)
XYZxyz(20.8016, 14.0062, 50.8877)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51BF #93BF51
analogous
#515CBF #7D51BF #B451BF
triadic
#7D51BF #BF7D51 #51BF7D
tetradic
#7D51BF #BF515C #93BF51 #51BFB4
square
#7D51BF #BF515C #93BF51 #51BFB4
split-complementary
#7D51BF #BFB451 #5CBF51
monochromatic
#44286D #60399A #7D51BF #9E7ECF #C0AAE0

Accessibility & contrast

On white

5.52
#7D51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7D51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51BF
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51BF#FFFFFF#000000##FFFFFF
##7D51BF1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B69C3
Deuteranopia (green-blind)
#2E68BD
Tritanopia (blue-blind)
#6F6880
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7d51bf;
/* rgb */ color: rgb(125, 81, 191);
/* oklch */ color: oklch(53.7% 0.167 299.2);
Tailwind
colors: {
  custom: {
    50: '#a783d3',
    500: '#7d51bf',
    950: '#000000',
  },
}
SCSS
$custom: #7d51bf;
$custom-light: #a783d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51bf",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 264,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53693,
    "c": 0.16663,
    "h": 299.2
  },
  "luminance": 0.14006
}

Semantic roles & 50–950 ramp

primary
#7D51BF
secondary
#BBCE9E
accent
#D652A1
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7D51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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