#7C51DB#7C51DB

#7C51DB is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.6% C 0.201 H 293.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7C51DB
RGBrgb(124, 81, 219)
HSLhsl(259, 66%, 59%)
HSVhsv(259, 63%, 86%)
CMYKcmyk(43.4%, 63%, 0%, 14.1%)
CIE-LABlab(46.02, 48.86, -64.60)
CIE-LCHlch(46.02, 81.00, 307.11°)
OKLaboklab(55.57% 0.0786 -0.1845)
OKLCHoklch(55.57% 0.201 293.1)
XYZxyz(24.0373, 15.2837, 68.6877)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51DB #B0DB51
analogous
#516BDB #7C51DB #C151DB
triadic
#7C51DB #DB7C51 #51DB7C
tetradic
#7C51DB #DB516B #B0DB51 #51DBC1
square
#7C51DB #DB516B #B0DB51 #51DBC1
split-complementary
#7C51DB #DBC151 #6BDB51
monochromatic
#431E93 #5A29C6 #7C51DB #A284E5 #C8B6F0

Accessibility & contrast

On white

5.18
#7C51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7C51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C51DB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51DB#FFFFFF#000000##FFFFFF
##7C51DB1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#006AD8
Tritanopia (blue-blind)
#61718F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7c51db;
/* rgb */ color: rgb(124, 81, 219);
/* oklch */ color: oklch(55.6% 0.201 293.1);
Tailwind
colors: {
  custom: {
    50: '#a984e7',
    500: '#7c51db',
    950: '#000000',
  },
}
SCSS
$custom: #7c51db;
$custom-light: #a984e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51db",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 258.696,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55565,
    "c": 0.20055,
    "h": 293.1
  },
  "luminance": 0.15284
}

Semantic roles & 50–950 ramp

primary
#7C51DB
secondary
#CEDFA9
accent
#E93FB4
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7C51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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