#7D51BE#7D51BE

#7D51BE is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.6% C 0.165 H 299.4°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7D51BE
RGBrgb(125, 81, 190)
HSLhsl(264, 46%, 53%)
HSVhsv(264, 57%, 75%)
CMYKcmyk(34.2%, 57.4%, 0%, 25.5%)
CIE-LABlab(44.18, 41.39, -50.86)
CIE-LCHlch(44.18, 65.58, 309.14°)
OKLaboklab(53.63% 0.0812 -0.1441)
OKLCHoklch(53.63% 0.165 299.4)
XYZxyz(20.6919, 13.9624, 50.3101)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51BE #92BE51
analogous
#515BBE #7D51BE #B351BE
triadic
#7D51BE #BE7D51 #51BE7D
tetradic
#7D51BE #BE515B #92BE51 #51BEB3
square
#7D51BE #BE515B #92BE51 #51BEB3
split-complementary
#7D51BE #BEB351 #5BBE51
monochromatic
#44286C #603999 #7D51BE #9E7ECF #C0AADF

Accessibility & contrast

On white

5.54
#7D51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#7D51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51BE
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51BE#FFFFFF#000000##FFFFFF
##7D51BE1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D68C2
Deuteranopia (green-blind)
#2F68BC
Tritanopia (blue-blind)
#6F6780
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7d51be;
/* rgb */ color: rgb(125, 81, 190);
/* oklch */ color: oklch(53.6% 0.165 299.4);
Tailwind
colors: {
  custom: {
    50: '#a683d2',
    500: '#7d51be',
    950: '#000000',
  },
}
SCSS
$custom: #7d51be;
$custom-light: #a683d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51be",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 264.22,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53627,
    "c": 0.16539,
    "h": 299.4
  },
  "luminance": 0.13963
}

Semantic roles & 50–950 ramp

primary
#7D51BE
secondary
#BACD9E
accent
#D553A0
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7D51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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