#7C51B2#7C51B2

#7C51B2 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.7% C 0.150 H 302.0°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7C51B2
RGBrgb(124, 81, 178)
HSLhsl(267, 39%, 51%)
HSVhsv(267, 54%, 70%)
CMYKcmyk(30.3%, 54.5%, 0%, 30.2%)
CIE-LABlab(43.34, 38.06, -45.20)
CIE-LCHlch(43.34, 59.09, 310.10°)
OKLaboklab(52.75% 0.0796 -0.1275)
OKLCHoklch(52.75% 0.15 302)
XYZxyz(19.2886, 13.3843, 43.6781)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51B2 #87B251
analogous
#5156B2 #7C51B2 #AC51B2
triadic
#7C51B2 #B27C51 #51B27C
tetradic
#7C51B2 #B25156 #87B251 #51B2AC
square
#7C51B2 #B25156 #87B251 #51B2AC
split-complementary
#7C51B2 #B2AC51 #56B251
monochromatic
#412A5F #5F3D89 #7C51B2 #9C7BC5 #BCA6D8

Accessibility & contrast

On white

5.71
#7C51B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#7C51B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C51B2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51B2#FFFFFF#000000##FFFFFF
##7C51B21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#3B66B0
Tritanopia (blue-blind)
#72647A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7c51b2;
/* rgb */ color: rgb(124, 81, 178);
/* oklch */ color: oklch(52.7% 0.150 302.0);
Tailwind
colors: {
  custom: {
    50: '#a583c9',
    500: '#7c51b2',
    950: '#000000',
  },
}
SCSS
$custom: #7c51b2;
$custom-light: #a583c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51b2",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 266.598,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52746,
    "c": 0.15029,
    "h": 302
  },
  "luminance": 0.13384
}

Semantic roles & 50–950 ramp

primary
#7C51B2
secondary
#B2C59A
accent
#CF599B
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #7C51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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