#7B51EB#7B51EB

#7B51EB is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.219 H 290.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7B51EB
RGBrgb(123, 81, 235)
HSLhsl(256, 79%, 62%)
HSVhsv(256, 66%, 92%)
CMYKcmyk(47.7%, 65.5%, 0%, 7.8%)
CIE-LABlab(47.10, 53.03, -71.92)
CIE-LCHlch(47.10, 89.36, 306.40°)
OKLaboklab(56.69% 0.0756 -0.2061)
OKLCHoklch(56.69% 0.219 290.1)
XYZxyz(26.1019, 16.0929, 80.3121)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51EB #C1EB51
analogous
#5174EB #7B51EB #C851EB
triadic
#7B51EB #EB7B51 #51EB7B
tetradic
#7B51EB #EB5174 #C1EB51 #51EBC8
square
#7B51EB #EB5174 #C1EB51 #51EBC8
split-complementary
#7B51EB #EBC851 #74EB51
monochromatic
#3E14AE #511AE5 #7B51EB #A588F1 #CEBFF8

Accessibility & contrast

On white

4.98
#7B51EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7B51EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51EB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51EB#FFFFFF#000000##FFFFFF
##7B51EB1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#006CE8
Tritanopia (blue-blind)
#567797
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7b51eb;
/* rgb */ color: rgb(123, 81, 235);
/* oklch */ color: oklch(56.7% 0.219 290.1);
Tailwind
colors: {
  custom: {
    50: '#aa84f2',
    500: '#7b51eb',
    950: '#000000',
  },
}
SCSS
$custom: #7b51eb;
$custom-light: #aa84f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51eb",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 256.364,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56687,
    "c": 0.21948,
    "h": 290.1
  },
  "luminance": 0.16094
}

Semantic roles & 50–950 ramp

primary
#7B51EB
secondary
#D9E8B0
accent
#DC0AA2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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