#7B51CD#7B51CD

#7B51CD is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.5% C 0.184 H 295.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7B51CD
RGBrgb(123, 81, 205)
HSLhsl(260, 55%, 56%)
HSVhsv(260, 60%, 80%)
CMYKcmyk(40%, 60.5%, 0%, 19.6%)
CIE-LABlab(44.95, 44.89, -58.32)
CIE-LCHlch(44.95, 73.60, 307.58°)
OKLaboklab(54.45% 0.0782 -0.1661)
OKLCHoklch(54.45% 0.184 295.2)
XYZxyz(22.1274, 14.5031, 59.3793)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51CD #A3CD51
analogous
#5165CD #7B51CD #B951CD
triadic
#7B51CD #CD7B51 #51CD7B
tetradic
#7B51CD #CD5165 #A3CD51 #51CDB9
square
#7B51CD #CD5165 #A3CD51 #51CDB9
split-complementary
#7B51CD #CDB951 #65CD51
monochromatic
#43257F #5C32AF #7B51CD #9F81DB #C3B0E8

Accessibility & contrast

On white

5.38
#7B51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7B51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51CD
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51CD#FFFFFF#000000##FFFFFF
##7B51CD1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0E68CA
Tritanopia (blue-blind)
#666C87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7b51cd;
/* rgb */ color: rgb(123, 81, 205);
/* oklch */ color: oklch(54.5% 0.184 295.2);
Tailwind
colors: {
  custom: {
    50: '#a684dd',
    500: '#7b51cd',
    950: '#000000',
  },
}
SCSS
$custom: #7b51cd;
$custom-light: #a684dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51cd",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 260.323,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54452,
    "c": 0.18358,
    "h": 295.2
  },
  "luminance": 0.14504
}

Semantic roles & 50–950 ramp

primary
#7B51CD
secondary
#C5D7A3
accent
#DF49AC
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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