#7D51CB#7D51CB

#7D51CB is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.181 H 296.5°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7D51CB
RGBrgb(125, 81, 203)
HSLhsl(262, 54%, 56%)
HSVhsv(262, 60%, 80%)
CMYKcmyk(38.4%, 60.1%, 0%, 20.4%)
CIE-LABlab(45.02, 44.80, -57.04)
CIE-LCHlch(45.02, 72.53, 308.14°)
OKLaboklab(54.51% 0.081 -0.1622)
OKLCHoklch(54.51% 0.181 296.5)
XYZxyz(22.1766, 14.5562, 58.1296)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51CB #9FCB51
analogous
#5162CB #7D51CB #BA51CB
triadic
#7D51CB #CB7D51 #51CB7D
tetradic
#7D51CB #CB5162 #9FCB51 #51CBBA
square
#7D51CB #CB5162 #9FCB51 #51CBBA
split-complementary
#7D51CB #CBBA51 #62CB51
monochromatic
#45257C #5F33AC #7D51CB #A080D9 #C3AFE7

Accessibility & contrast

On white

5.37
#7D51CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7D51CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51CB
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51CB#FFFFFF#000000##FFFFFF
##7D51CB1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#1969C8
Tritanopia (blue-blind)
#6A6C86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7d51cb;
/* rgb */ color: rgb(125, 81, 203);
/* oklch */ color: oklch(54.5% 0.181 296.5);
Tailwind
colors: {
  custom: {
    50: '#a884dc',
    500: '#7d51cb',
    950: '#000000',
  },
}
SCSS
$custom: #7d51cb;
$custom-light: #a884dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51cb",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 261.639,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54512,
    "c": 0.18132,
    "h": 296.5
  },
  "luminance": 0.14557
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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