#7F5DE3#7F5DE3

#7F5DE3 is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.2% C 0.194 H 290.8°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7F5DE3
RGBrgb(127, 93, 227)
HSLhsl(255, 71%, 63%)
HSVhsv(255, 59%, 89%)
CMYKcmyk(44.1%, 59%, 0%, 11%)
CIE-LABlab(49.36, 45.04, -63.72)
CIE-LCHlch(49.36, 78.03, 305.26°)
OKLaboklab(58.24% 0.069 -0.1818)
OKLCHoklch(58.24% 0.194 290.8)
XYZxyz(26.5280, 17.8859, 74.7127)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DE3 #C1E35D
analogous
#5D7EE3 #7F5DE3 #C25DE3
triadic
#7F5DE3 #E37F5D #5DE37F
tetradic
#7F5DE3 #E35D7E #C1E35D #5DE3C2
square
#7F5DE3 #E35D7E #C1E35D #5DE3C2
split-complementary
#7F5DE3 #E3C25D #7EE35D
monochromatic
#401DA8 #5629DA #7F5DE3 #A891EC #D1C5F5

Accessibility & contrast

On white

4.59
#7F5DE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7F5DE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5DE3
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DE3#FFFFFF#000000##FFFFFF
##7F5DE31.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078E7
Deuteranopia (green-blind)
#0072E0
Tritanopia (blue-blind)
#617B97
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f5de3;
/* rgb */ color: rgb(127, 93, 227);
/* oklch */ color: oklch(58.2% 0.194 290.8);
Tailwind
colors: {
  custom: {
    50: '#ab8ced',
    500: '#7f5de3',
    950: '#000000',
  },
}
SCSS
$custom: #7f5de3;
$custom-light: #ab8ced;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5de3",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 227
  },
  "hsl": {
    "h": 255.224,
    "s": 70.526,
    "l": 62.745
  },
  "oklch": {
    "l": 0.58241,
    "c": 0.19449,
    "h": 290.8
  },
  "luminance": 0.17887
}

Semantic roles & 50–950 ramp

primary
#7F5DE3
secondary
#DAE6B6
accent
#D313A2
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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