#7C51CB#7C51CB

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

Color values

HEX#7C51CB
RGBrgb(124, 81, 203)
HSLhsl(261, 54%, 56%)
HSVhsv(261, 60%, 80%)
CMYKcmyk(38.9%, 60.1%, 0%, 20.4%)
CIE-LABlab(44.92, 44.57, -57.21)
CIE-LCHlch(44.92, 72.53, 307.92°)
OKLaboklab(54.41% 0.0796 -0.1628)
OKLCHoklch(54.41% 0.181 296.1)
XYZxyz(22.0313, 14.4813, 58.1228)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51CB #A0CB51
analogous
#5163CB #7C51CB #B951CB
triadic
#7C51CB #CB7C51 #51CB7C
tetradic
#7C51CB #CB5163 #A0CB51 #51CBB9
square
#7C51CB #CB5163 #A0CB51 #51CBB9
split-complementary
#7C51CB #CBB951 #63CB51
monochromatic
#44257C #5E33AC #7C51CB #9F80D9 #C3AFE7

Accessibility & contrast

On white

5.39
#7C51CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C51CB
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51CB#FFFFFF#000000##FFFFFF
##7C51CB1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c51cb;
/* rgb */ color: rgb(124, 81, 203);
/* oklch */ color: oklch(54.4% 0.181 296.1);
Tailwind
colors: {
  custom: {
    50: '#a784dc',
    500: '#7c51cb',
    950: '#000000',
  },
}
SCSS
$custom: #7c51cb;
$custom-light: #a784dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51cb",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 261.148,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54411,
    "c": 0.18123,
    "h": 296.1
  },
  "luminance": 0.14482
}

Semantic roles & 50–950 ramp

primary
#7C51CB
secondary
#C3D5A3
accent
#DD4AAA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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