#7B51CE#7B51CE

#7B51CE is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.185 H 295.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7B51CE
RGBrgb(123, 81, 206)
HSLhsl(260, 56%, 56%)
HSVhsv(260, 61%, 81%)
CMYKcmyk(40.3%, 60.7%, 0%, 19.2%)
CIE-LABlab(45.01, 45.16, -58.79)
CIE-LCHlch(45.01, 74.13, 307.53°)
OKLaboklab(54.52% 0.0782 -0.1674)
OKLCHoklch(54.52% 0.185 295)
XYZxyz(22.2484, 14.5516, 60.0171)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51CE #A4CE51
analogous
#5166CE #7B51CE #BA51CE
triadic
#7B51CE #CE7B51 #51CE7B
tetradic
#7B51CE #CE5166 #A4CE51 #51CEBA
square
#7B51CE #CE5166 #A4CE51 #51CEBA
split-complementary
#7B51CE #CEBA51 #66CE51
monochromatic
#432480 #5C32B0 #7B51CE #9F81DB #C3B1E9

Accessibility & contrast

On white

5.37
#7B51CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7B51CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51CE
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51CE#FFFFFF#000000##FFFFFF
##7B51CE1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#0969CB
Tritanopia (blue-blind)
#666D88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7b51ce;
/* rgb */ color: rgb(123, 81, 206);
/* oklch */ color: oklch(54.5% 0.185 295.0);
Tailwind
colors: {
  custom: {
    50: '#a784de',
    500: '#7b51ce',
    950: '#000000',
  },
}
SCSS
$custom: #7b51ce;
$custom-light: #a784de;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51ce",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 260.16,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54523,
    "c": 0.1848,
    "h": 295
  },
  "luminance": 0.14552
}

Semantic roles & 50–950 ramp

primary
#7B51CE
secondary
#C6D7A4
accent
#DF48AD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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