#7B51BC#7B51BC

#7B51BC is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.3% C 0.163 H 298.9°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7B51BC
RGBrgb(123, 81, 188)
HSLhsl(264, 44%, 53%)
HSVhsv(264, 57%, 74%)
CMYKcmyk(34.6%, 56.9%, 0%, 26.3%)
CIE-LABlab(43.84, 40.39, -50.26)
CIE-LCHlch(43.84, 64.47, 308.79°)
OKLaboklab(53.29% 0.0785 -0.1424)
OKLCHoklch(53.29% 0.163 298.9)
XYZxyz(20.1857, 13.7264, 49.1532)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51BC #92BC51
analogous
#515DBC #7B51BC #B051BC
triadic
#7B51BC #BC7B51 #51BC7B
tetradic
#7B51BC #BC515D #92BC51 #51BCB0
square
#7B51BC #BC515D #92BC51 #51BCB0
split-complementary
#7B51BC #BCB051 #5DBC51
monochromatic
#42296A #5E3A96 #7B51BC #9D7DCD #BEA9DE

Accessibility & contrast

On white

5.61
#7B51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#7B51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51BC
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51BC#FFFFFF#000000##FFFFFF
##7B51BC1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F68C0
Deuteranopia (green-blind)
#2F67BA
Tritanopia (blue-blind)
#6D677F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7b51bc;
/* rgb */ color: rgb(123, 81, 188);
/* oklch */ color: oklch(53.3% 0.163 298.9);
Tailwind
colors: {
  custom: {
    50: '#a583d1',
    500: '#7b51bc',
    950: '#000000',
  },
}
SCSS
$custom: #7b51bc;
$custom-light: #a583d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51bc",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 263.551,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53287,
    "c": 0.1626,
    "h": 298.9
  },
  "luminance": 0.13727
}

Semantic roles & 50–950 ramp

primary
#7B51BC
secondary
#B9CC9D
accent
#D454A2
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7B51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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