#7F5DD2#7F5DD2

#7F5DD2 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.1% C 0.173 H 293.6°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7F5DD2
RGBrgb(127, 93, 210)
HSLhsl(257, 57%, 59%)
HSVhsv(257, 56%, 82%)
CMYKcmyk(39.5%, 55.7%, 0%, 17.6%)
CIE-LABlab(48.25, 40.38, -55.84)
CIE-LCHlch(48.25, 68.91, 305.87°)
OKLaboklab(57.08% 0.0692 -0.1587)
OKLCHoklch(57.08% 0.173 293.6)
XYZxyz(24.2965, 16.9933, 62.9602)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DD2 #B0D25D
analogous
#5D76D2 #7F5DD2 #BA5DD2
triadic
#7F5DD2 #D27F5D #5DD27F
tetradic
#7F5DD2 #D25D76 #B0D25D #5DD2BA
square
#7F5DD2 #D25D76 #B0D25D #5DD2BA
split-complementary
#7F5DD2 #D2BA5D #76D25D
monochromatic
#45278D #5C35BD #7F5DD2 #A58DDF #CBBDED

Accessibility & contrast

On white

4.77
#7F5DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#7F5DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5DD2
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DD2#FFFFFF#000000##FFFFFF
##7F5DD21.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2174D6
Deuteranopia (green-blind)
#2C71CF
Tritanopia (blue-blind)
#6A768E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f5dd2;
/* rgb */ color: rgb(127, 93, 210);
/* oklch */ color: oklch(57.1% 0.173 293.6);
Tailwind
colors: {
  custom: {
    50: '#a98ce0',
    500: '#7f5dd2',
    950: '#000000',
  },
}
SCSS
$custom: #7f5dd2;
$custom-light: #a98ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5dd2",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 210
  },
  "hsl": {
    "h": 257.436,
    "s": 56.522,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57075,
    "c": 0.1731,
    "h": 293.6
  },
  "luminance": 0.16994
}

Semantic roles & 50–950 ramp

primary
#7F5DD2
secondary
#CFDCAF
accent
#E048B4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7F5DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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