#7B51EA#7B51EA

#7B51EA is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.6% C 0.218 H 290.3°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7B51EA
RGBrgb(123, 81, 234)
HSLhsl(256, 78%, 62%)
HSVhsv(256, 65%, 92%)
CMYKcmyk(47.4%, 65.4%, 0%, 8.2%)
CIE-LABlab(47.02, 52.76, -71.48)
CIE-LCHlch(47.02, 88.84, 306.43°)
OKLaboklab(56.61% 0.0757 -0.2048)
OKLCHoklch(56.61% 0.218 290.3)
XYZxyz(25.9579, 16.0353, 79.5534)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51EA #C0EA51
analogous
#5173EA #7B51EA #C851EA
triadic
#7B51EA #EA7B51 #51EA7B
tetradic
#7B51EA #EA5173 #C0EA51 #51EAC8
square
#7B51EA #EA5173 #C0EA51 #51EAC8
split-complementary
#7B51EA #EAC851 #73EA51
monochromatic
#3E15AC #521BE2 #7B51EA #A488F1 #CEBEF7

Accessibility & contrast

On white

4.99
#7B51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7B51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51EA
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51EA#FFFFFF#000000##FFFFFF
##7B51EA1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#006CE7
Tritanopia (blue-blind)
#577697
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b51ea;
/* rgb */ color: rgb(123, 81, 234);
/* oklch */ color: oklch(56.6% 0.218 290.3);
Tailwind
colors: {
  custom: {
    50: '#aa84f2',
    500: '#7b51ea',
    950: '#000000',
  },
}
SCSS
$custom: #7b51ea;
$custom-light: #aa84f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51ea",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 256.471,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.5661,
    "c": 0.2183,
    "h": 290.3
  },
  "luminance": 0.16036
}

Semantic roles & 50–950 ramp

primary
#7B51EA
secondary
#D8E8AF
accent
#DB0BA2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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