#7B51E8#7B51E8

#7B51E8 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.5% C 0.216 H 290.6°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7B51E8
RGBrgb(123, 81, 232)
HSLhsl(257, 77%, 61%)
HSVhsv(257, 65%, 91%)
CMYKcmyk(47%, 65.1%, 0%, 9%)
CIE-LABlab(46.87, 52.21, -70.59)
CIE-LCHlch(46.87, 87.80, 306.49°)
OKLaboklab(56.45% 0.0759 -0.2022)
OKLCHoklch(56.45% 0.216 290.6)
XYZxyz(25.6722, 15.9210, 78.0487)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51E8 #BEE851
analogous
#5173E8 #7B51E8 #C751E8
triadic
#7B51E8 #E87B51 #51E87B
tetradic
#7B51E8 #E85173 #BEE851 #51E8C7
square
#7B51E8 #E85173 #BEE851 #51E8C7
split-complementary
#7B51E8 #E8C751 #73E851
monochromatic
#3F16A8 #531DDE #7B51E8 #A487EF #CDBDF6

Accessibility & contrast

On white

5.02
#7B51E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7B51E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51E8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51E8#FFFFFF#000000##FFFFFF
##7B51E81.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b51e8;
/* rgb */ color: rgb(123, 81, 232);
/* oklch */ color: oklch(56.5% 0.216 290.6);
Tailwind
colors: {
  custom: {
    50: '#a984f0',
    500: '#7b51e8',
    950: '#000000',
  },
}
SCSS
$custom: #7b51e8;
$custom-light: #a984f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51e8",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 256.689,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.56454,
    "c": 0.21595,
    "h": 290.6
  },
  "luminance": 0.15922
}

Semantic roles & 50–950 ramp

primary
#7B51E8
secondary
#D7E7AE
accent
#D90DA0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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