#7B51EC#7B51EC

#7B51EC is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.8% C 0.221 H 290.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7B51EC
RGBrgb(123, 81, 236)
HSLhsl(256, 80%, 62%)
HSVhsv(256, 66%, 93%)
CMYKcmyk(47.9%, 65.7%, 0%, 7.5%)
CIE-LABlab(47.17, 53.31, -72.36)
CIE-LCHlch(47.17, 89.87, 306.38°)
OKLaboklab(56.77% 0.0754 -0.2073)
OKLCHoklch(56.77% 0.221 290)
XYZxyz(26.2468, 16.1509, 81.0751)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51EC #C2EC51
analogous
#5175EC #7B51EC #C951EC
triadic
#7B51EC #EC7B51 #51EC7B
tetradic
#7B51EC #EC5175 #C2EC51 #51ECC9
square
#7B51EC #EC5175 #C2EC51 #51ECC9
split-complementary
#7B51EC #ECC951 #75EC51
monochromatic
#3E13AF #511AE6 #7B51EC #A588F2 #CFBFF8

Accessibility & contrast

On white

4.96
#7B51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7B51EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51EC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51EC#FFFFFF#000000##FFFFFF
##7B51EC1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#567798
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7b51ec;
/* rgb */ color: rgb(123, 81, 236);
/* oklch */ color: oklch(56.8% 0.221 290.0);
Tailwind
colors: {
  custom: {
    50: '#aa84f3',
    500: '#7b51ec',
    950: '#000000',
  },
}
SCSS
$custom: #7b51ec;
$custom-light: #aa84f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51ec",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 256.258,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56765,
    "c": 0.22064,
    "h": 290
  },
  "luminance": 0.16152
}

Semantic roles & 50–950 ramp

primary
#7B51EC
secondary
#D9E9B0
accent
#DD09A3
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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