#7B51B2#7B51B2

#7B51B2 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.6% C 0.150 H 301.4°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7B51B2
RGBrgb(123, 81, 178)
HSLhsl(266, 39%, 51%)
HSVhsv(266, 54%, 70%)
CMYKcmyk(30.9%, 54.5%, 0%, 30.2%)
CIE-LABlab(43.23, 37.81, -45.38)
CIE-LCHlch(43.23, 59.06, 309.80°)
OKLaboklab(52.64% 0.0782 -0.1281)
OKLCHoklch(52.64% 0.15 301.4)
XYZxyz(19.1448, 13.3101, 43.6713)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51B2 #88B251
analogous
#5158B2 #7B51B2 #AB51B2
triadic
#7B51B2 #B27B51 #51B27B
tetradic
#7B51B2 #B25158 #88B251 #51B2AB
square
#7B51B2 #B25158 #88B251 #51B2AB
split-complementary
#7B51B2 #B2AB51 #58B251
monochromatic
#412A5F #5E3D89 #7B51B2 #9B7BC5 #BBA6D8

Accessibility & contrast

On white

5.73
#7B51B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#7B51B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51B2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51B2#FFFFFF#000000##FFFFFF
##7B51B21.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C66B5
Deuteranopia (green-blind)
#3A66B0
Tritanopia (blue-blind)
#70647A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7b51b2;
/* rgb */ color: rgb(123, 81, 178);
/* oklch */ color: oklch(52.6% 0.150 301.4);
Tailwind
colors: {
  custom: {
    50: '#a483c9',
    500: '#7b51b2',
    950: '#000000',
  },
}
SCSS
$custom: #7b51b2;
$custom-light: #a483c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51b2",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 265.979,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5264,
    "c": 0.15008,
    "h": 301.4
  },
  "luminance": 0.1331
}

Semantic roles & 50–950 ramp

primary
#7B51B2
secondary
#B2C59A
accent
#CF599C
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #7B51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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