#7B51DA#7B51DA

#7B51DA is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.4% C 0.199 H 292.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7B51DA
RGBrgb(123, 81, 218)
HSLhsl(258, 65%, 59%)
HSVhsv(258, 63%, 85%)
CMYKcmyk(43.6%, 62.8%, 0%, 14.5%)
CIE-LABlab(45.85, 48.39, -64.31)
CIE-LCHlch(45.85, 80.48, 306.96°)
OKLaboklab(55.39% 0.0774 -0.1837)
OKLCHoklch(55.39% 0.199 292.8)
XYZxyz(23.7622, 15.1571, 67.9897)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51DA #B0DA51
analogous
#516BDA #7B51DA #BF51DA
triadic
#7B51DA #DA7B51 #51DA7B
tetradic
#7B51DA #DA516B #B0DA51 #51DABF
square
#7B51DA #DA516B #B0DA51 #51DABF
split-complementary
#7B51DA #DABF51 #6BDA51
monochromatic
#421F92 #592AC4 #7B51DA #A183E5 #C8B6EF

Accessibility & contrast

On white

5.21
#7B51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7B51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51DA
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51DA#FFFFFF#000000##FFFFFF
##7B51DA1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#006AD7
Tritanopia (blue-blind)
#60718E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b51da;
/* rgb */ color: rgb(123, 81, 218);
/* oklch */ color: oklch(55.4% 0.199 292.8);
Tailwind
colors: {
  custom: {
    50: '#a884e6',
    500: '#7b51da',
    950: '#000000',
  },
}
SCSS
$custom: #7b51da;
$custom-light: #a884e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51da",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 258.394,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55394,
    "c": 0.19932,
    "h": 292.8
  },
  "luminance": 0.15158
}

Semantic roles & 50–950 ramp

primary
#7B51DA
secondary
#CEDEA8
accent
#E840B4
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7B51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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