#7C51CD#7C51CD

#7C51CD is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.6% C 0.184 H 295.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7C51CD
RGBrgb(124, 81, 205)
HSLhsl(261, 55%, 56%)
HSVhsv(261, 60%, 80%)
CMYKcmyk(39.5%, 60.5%, 0%, 19.6%)
CIE-LABlab(45.05, 45.11, -58.15)
CIE-LCHlch(45.05, 73.59, 307.80°)
OKLaboklab(54.55% 0.0796 -0.1655)
OKLCHoklch(54.55% 0.184 295.7)
XYZxyz(22.2712, 14.5773, 59.3861)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51CD #A2CD51
analogous
#5164CD #7C51CD #BA51CD
triadic
#7C51CD #CD7C51 #51CD7C
tetradic
#7C51CD #CD5164 #A2CD51 #51CDBA
square
#7C51CD #CD5164 #A2CD51 #51CDBA
split-complementary
#7C51CD #CDBA51 #64CD51
monochromatic
#44257F #5D32AF #7C51CD #A081DB #C4B0E8

Accessibility & contrast

On white

5.36
#7C51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7C51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C51CD
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51CD#FFFFFF#000000##FFFFFF
##7C51CD1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#1169CA
Tritanopia (blue-blind)
#686C87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7c51cd;
/* rgb */ color: rgb(124, 81, 205);
/* oklch */ color: oklch(54.6% 0.184 295.7);
Tailwind
colors: {
  custom: {
    50: '#a784dd',
    500: '#7c51cd',
    950: '#000000',
  },
}
SCSS
$custom: #7c51cd;
$custom-light: #a784dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51cd",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 260.806,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54552,
    "c": 0.18367,
    "h": 295.7
  },
  "luminance": 0.14578
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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