#7B51CC#7B51CC

#7B51CC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.182 H 295.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7B51CC
RGBrgb(123, 81, 204)
HSLhsl(260, 55%, 56%)
HSVhsv(260, 60%, 80%)
CMYKcmyk(39.7%, 60.3%, 0%, 20%)
CIE-LABlab(44.88, 44.62, -57.85)
CIE-LCHlch(44.88, 73.06, 307.64°)
OKLaboklab(54.38% 0.0783 -0.1647)
OKLCHoklch(54.38% 0.182 295.4)
XYZxyz(22.0070, 14.4550, 58.7456)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51CC #A2CC51
analogous
#5164CC #7B51CC #B951CC
triadic
#7B51CC #CC7B51 #51CC7B
tetradic
#7B51CC #CC5164 #A2CC51 #51CCB9
square
#7B51CC #CC5164 #A2CC51 #51CCB9
split-complementary
#7B51CC #CCB951 #64CC51
monochromatic
#43257E #5D33AD #7B51CC #9F80DA #C3B0E8

Accessibility & contrast

On white

5.40
#7B51CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7B51CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51CC
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51CC#FFFFFF#000000##FFFFFF
##7B51CC1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#1268C9
Tritanopia (blue-blind)
#676C87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7b51cc;
/* rgb */ color: rgb(123, 81, 204);
/* oklch */ color: oklch(54.4% 0.182 295.4);
Tailwind
colors: {
  custom: {
    50: '#a684dc',
    500: '#7b51cc',
    950: '#000000',
  },
}
SCSS
$custom: #7b51cc;
$custom-light: #a684dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51cc",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 260.488,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54381,
    "c": 0.18236,
    "h": 295.4
  },
  "luminance": 0.14455
}

Semantic roles & 50–950 ramp

primary
#7B51CC
secondary
#C4D6A3
accent
#DE4AAB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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