#7B51DC#7B51DC

#7B51DC is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.5% C 0.202 H 292.5°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7B51DC
RGBrgb(123, 81, 220)
HSLhsl(258, 67%, 59%)
HSVhsv(258, 63%, 86%)
CMYKcmyk(44.1%, 63.2%, 0%, 13.7%)
CIE-LABlab(45.99, 48.94, -65.22)
CIE-LCHlch(45.99, 81.54, 306.88°)
OKLaboklab(55.54% 0.0772 -0.1864)
OKLCHoklch(55.54% 0.202 292.5)
XYZxyz(24.0255, 15.2624, 69.3763)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51DC #B2DC51
analogous
#516DDC #7B51DC #C051DC
triadic
#7B51DC #DC7B51 #51DC7B
tetradic
#7B51DC #DC516D #B2DC51 #51DCC0
square
#7B51DC #DC516D #B2DC51 #51DCC0
split-complementary
#7B51DC #DCC051 #6DDC51
monochromatic
#421E95 #5828C8 #7B51DC #A284E6 #C8B7F0

Accessibility & contrast

On white

5.18
#7B51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7B51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51DC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51DC#FFFFFF#000000##FFFFFF
##7B51DC1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#5F718F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b51dc;
/* rgb */ color: rgb(123, 81, 220);
/* oklch */ color: oklch(55.5% 0.202 292.5);
Tailwind
colors: {
  custom: {
    50: '#a884e8',
    500: '#7b51dc',
    950: '#000000',
  },
}
SCSS
$custom: #7b51dc;
$custom-light: #a884e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51dc",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 258.129,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55543,
    "c": 0.20172,
    "h": 292.5
  },
  "luminance": 0.15263
}

Semantic roles & 50–950 ramp

primary
#7B51DC
secondary
#CFE0A9
accent
#E93EB6
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7B51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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