#7D51BB#7D51BB

#7D51BB is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.4% C 0.162 H 300.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7D51BB
RGBrgb(125, 81, 187)
HSLhsl(265, 44%, 53%)
HSVhsv(265, 57%, 73%)
CMYKcmyk(33.2%, 56.7%, 0%, 26.7%)
CIE-LABlab(43.99, 40.62, -49.41)
CIE-LCHlch(43.99, 63.97, 309.42°)
OKLaboklab(53.43% 0.0812 -0.1398)
OKLCHoklch(53.43% 0.162 300.1)
XYZxyz(20.3674, 13.8325, 48.6010)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51BB #8FBB51
analogous
#515ABB #7D51BB #B251BB
triadic
#7D51BB #BB7D51 #51BB7D
tetradic
#7D51BB #BB515A #8FBB51 #51BBB2
square
#7D51BB #BB515A #8FBB51 #51BBB2
split-complementary
#7D51BB #BBB251 #5ABB51
monochromatic
#432969 #603A95 #7D51BB #9E7DCC #BFA9DD

Accessibility & contrast

On white

5.58
#7D51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7D51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51BB
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51BB#FFFFFF#000000##FFFFFF
##7D51BB1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2268BF
Deuteranopia (green-blind)
#3367B9
Tritanopia (blue-blind)
#70667E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7d51bb;
/* rgb */ color: rgb(125, 81, 187);
/* oklch */ color: oklch(53.4% 0.162 300.1);
Tailwind
colors: {
  custom: {
    50: '#a683d0',
    500: '#7d51bb',
    950: '#000000',
  },
}
SCSS
$custom: #7d51bb;
$custom-light: #a683d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51bb",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 264.906,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53429,
    "c": 0.16169,
    "h": 300.1
  },
  "luminance": 0.13833
}

Semantic roles & 50–950 ramp

primary
#7D51BB
secondary
#B8CB9D
accent
#D4549F
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7D51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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