#7B51CA#7B51CA

#7B51CA is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.2% C 0.180 H 295.8°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7B51CA
RGBrgb(123, 81, 202)
HSLhsl(261, 53%, 55%)
HSVhsv(261, 60%, 79%)
CMYKcmyk(39.1%, 59.9%, 0%, 20.8%)
CIE-LABlab(44.74, 44.09, -56.92)
CIE-LCHlch(44.74, 71.99, 307.76°)
OKLaboklab(54.24% 0.0784 -0.1619)
OKLCHoklch(54.24% 0.18 295.8)
XYZxyz(21.7687, 14.3597, 57.4904)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51CA #A0CA51
analogous
#5164CA #7B51CA #B751CA
triadic
#7B51CA #CA7B51 #51CA7B
tetradic
#7B51CA #CA5164 #A0CA51 #51CAB7
square
#7B51CA #CA5164 #A0CA51 #51CAB7
split-complementary
#7B51CA #CAB751 #64CA51
monochromatic
#43257B #5D34AA #7B51CA #9F80D8 #C2AFE7

Accessibility & contrast

On white

5.42
#7B51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7B51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51CA
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51CA#FFFFFF#000000##FFFFFF
##7B51CA1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#1868C7
Tritanopia (blue-blind)
#676B86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7b51ca;
/* rgb */ color: rgb(123, 81, 202);
/* oklch */ color: oklch(54.2% 0.180 295.8);
Tailwind
colors: {
  custom: {
    50: '#a684db',
    500: '#7b51ca',
    950: '#000000',
  },
}
SCSS
$custom: #7b51ca;
$custom-light: #a684db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51ca",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 260.826,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54241,
    "c": 0.17991,
    "h": 295.8
  },
  "luminance": 0.1436
}

Semantic roles & 50–950 ramp

primary
#7B51CA
secondary
#C3D5A2
accent
#DD4BAA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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