#7B51CB#7B51CB

#7B51CB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.181 H 295.6°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7B51CB
RGBrgb(123, 81, 203)
HSLhsl(261, 54%, 56%)
HSVhsv(261, 60%, 80%)
CMYKcmyk(39.4%, 60.1%, 0%, 20.4%)
CIE-LABlab(44.81, 44.35, -57.39)
CIE-LCHlch(44.81, 72.53, 307.70°)
OKLaboklab(54.31% 0.0783 -0.1633)
OKLCHoklch(54.31% 0.181 295.6)
XYZxyz(21.8875, 14.4072, 58.1160)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51CB #A1CB51
analogous
#5164CB #7B51CB #B851CB
triadic
#7B51CB #CB7B51 #51CB7B
tetradic
#7B51CB #CB5164 #A1CB51 #51CBB8
square
#7B51CB #CB5164 #A1CB51 #51CBB8
split-complementary
#7B51CB #CBB851 #64CB51
monochromatic
#43257C #5D33AC #7B51CB #9F80D9 #C2AFE7

Accessibility & contrast

On white

5.41
#7B51CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7B51CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51CB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51CB#FFFFFF#000000##FFFFFF
##7B51CB1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#1568C8
Tritanopia (blue-blind)
#676C86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7b51cb;
/* rgb */ color: rgb(123, 81, 203);
/* oklch */ color: oklch(54.3% 0.181 295.6);
Tailwind
colors: {
  custom: {
    50: '#a684dc',
    500: '#7b51cb',
    950: '#000000',
  },
}
SCSS
$custom: #7b51cb;
$custom-light: #a684dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51cb",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 260.656,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54311,
    "c": 0.18113,
    "h": 295.6
  },
  "luminance": 0.14408
}

Semantic roles & 50–950 ramp

primary
#7B51CB
secondary
#C4D5A3
accent
#DD4AAB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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