#7B51E9#7B51E9

#7B51E9 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.5% C 0.217 H 290.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7B51E9
RGBrgb(123, 81, 233)
HSLhsl(257, 78%, 62%)
HSVhsv(257, 65%, 91%)
CMYKcmyk(47.2%, 65.2%, 0%, 8.6%)
CIE-LABlab(46.95, 52.48, -71.04)
CIE-LCHlch(46.95, 88.32, 306.46°)
OKLaboklab(56.53% 0.0758 -0.2035)
OKLCHoklch(56.53% 0.217 290.4)
XYZxyz(25.8146, 15.9780, 78.7989)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51E9 #BFE951
analogous
#5173E9 #7B51E9 #C751E9
triadic
#7B51E9 #E97B51 #51E97B
tetradic
#7B51E9 #E95173 #BFE951 #51E9C7
square
#7B51E9 #E95173 #BFE951 #51E9C7
split-complementary
#7B51E9 #E9C751 #73E951
monochromatic
#3F16AA #531CE0 #7B51E9 #A487F0 #CDBEF7

Accessibility & contrast

On white

5.01
#7B51E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7B51E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51E9
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51E9#FFFFFF#000000##FFFFFF
##7B51E91.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EE
Deuteranopia (green-blind)
#006CE6
Tritanopia (blue-blind)
#587696
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b51e9;
/* rgb */ color: rgb(123, 81, 233);
/* oklch */ color: oklch(56.5% 0.217 290.4);
Tailwind
colors: {
  custom: {
    50: '#a984f1',
    500: '#7b51e9',
    950: '#000000',
  },
}
SCSS
$custom: #7b51e9;
$custom-light: #a984f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51e9",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 256.579,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56532,
    "c": 0.21712,
    "h": 290.4
  },
  "luminance": 0.15979
}

Semantic roles & 50–950 ramp

primary
#7B51E9
secondary
#D8E7AF
accent
#DA0CA1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B51E9

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

Preview Lab → · Contrast checker → · Palette generator →

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