#7D51CD#7D51CD

#7D51CD is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.184 H 296.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7D51CD
RGBrgb(125, 81, 205)
HSLhsl(261, 55%, 56%)
HSVhsv(261, 60%, 80%)
CMYKcmyk(39%, 60.5%, 0%, 19.6%)
CIE-LABlab(45.15, 45.33, -57.98)
CIE-LCHlch(45.15, 73.59, 308.02°)
OKLaboklab(54.65% 0.0809 -0.165)
OKLCHoklch(54.65% 0.184 296.1)
XYZxyz(22.4165, 14.6522, 59.3929)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51CD #A1CD51
analogous
#5163CD #7D51CD #BB51CD
triadic
#7D51CD #CD7D51 #51CD7D
tetradic
#7D51CD #CD5163 #A1CD51 #51CDBB
square
#7D51CD #CD5163 #A1CD51 #51CDBB
split-complementary
#7D51CD #CDBB51 #63CD51
monochromatic
#45257F #5E32AF #7D51CD #A181DB #C4B0E8

Accessibility & contrast

On white

5.34
#7D51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7D51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51CD
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51CD#FFFFFF#000000##FFFFFF
##7D51CD1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#1469CA
Tritanopia (blue-blind)
#696C87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7d51cd;
/* rgb */ color: rgb(125, 81, 205);
/* oklch */ color: oklch(54.7% 0.184 296.1);
Tailwind
colors: {
  custom: {
    50: '#a884dd',
    500: '#7d51cd',
    950: '#000000',
  },
}
SCSS
$custom: #7d51cd;
$custom-light: #a884dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51cd",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 261.29,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54652,
    "c": 0.18376,
    "h": 296.1
  },
  "luminance": 0.14653
}

Semantic roles & 50–950 ramp

primary
#7D51CD
secondary
#C4D7A3
accent
#DF49AA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7D51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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