#7C51DA#7C51DA

#7C51DA is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.5% C 0.199 H 293.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7C51DA
RGBrgb(124, 81, 218)
HSLhsl(259, 65%, 59%)
HSVhsv(259, 63%, 85%)
CMYKcmyk(43.1%, 62.8%, 0%, 14.5%)
CIE-LABlab(45.95, 48.59, -64.14)
CIE-LCHlch(45.95, 80.47, 307.15°)
OKLaboklab(55.49% 0.0787 -0.1832)
OKLCHoklch(55.49% 0.199 293.3)
XYZxyz(23.9061, 15.2312, 67.9964)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51DA #AFDA51
analogous
#516ADA #7C51DA #C051DA
triadic
#7C51DA #DA7C51 #51DA7C
tetradic
#7C51DA #DA516A #AFDA51 #51DAC0
square
#7C51DA #DA516A #AFDA51 #51DAC0
split-complementary
#7C51DA #DAC051 #6ADA51
monochromatic
#431F92 #5A2AC4 #7C51DA #A283E5 #C8B6EF

Accessibility & contrast

On white

5.19
#7C51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7C51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C51DA
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51DA#FFFFFF#000000##FFFFFF
##7C51DA1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#006AD7
Tritanopia (blue-blind)
#62718E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7c51da;
/* rgb */ color: rgb(124, 81, 218);
/* oklch */ color: oklch(55.5% 0.199 293.3);
Tailwind
colors: {
  custom: {
    50: '#a884e6',
    500: '#7c51da',
    950: '#000000',
  },
}
SCSS
$custom: #7c51da;
$custom-light: #a884e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51da",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 258.832,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55491,
    "c": 0.19936,
    "h": 293.3
  },
  "luminance": 0.15232
}

Semantic roles & 50–950 ramp

primary
#7C51DA
secondary
#CDDEA8
accent
#E840B3
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7C51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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